SaveHTMLEx
Description
Exports document to HTML or XHTML file, using CSS (Cascading Style Sheets) and a set of images (in separate files).
function SaveHTMLEx (const FileName, Title, ImagesPrefix, ExtraStyles, ExternalCSS: String): Boolean;
Parameter |
Description |
FileName |
The name of the output HTML file. |
Title |
The title of the output HTML file. |
ImagesPrefix |
Optional parameter. The first part of names of images that will be saved with HTML document. |
ExtraStyles |
Strings that can contain additional entries of CSS (usually you need not to use it, set to ''). |
ExternalCSS |
If this string is not empty, this method uses external CSS instead of saving CSS into HTML file). |
Example
if Form1.RichEdit1.SaveHTMLEx('d:\file.html', 'Title', '', '', '') then
ShowMessage('File saved successfully')
else
ShowMessage('There was an error during the export.');