SaveHTML
Description
Exports document to HTML or XHTML file, using HTML tags like <font>, <b>, <div>, etc and a set of images (in separate files).
function SaveHTML (FileName, Title: String; ImagesPrefix: 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. |
Example
if Form1.RichEdit1.SaveHTML('d:\file.html', Title) then
ShowMessage('File saved successfully')
else
ShowMessage('There was an error during the export.');