
Public Member Functions | |
| ConvertRTFFile (const TFileName RTFFilename, const TFileName HTMLFilename) | |
| Convert a RTF file to a HTML file. | |
| AnsiString | ConvertRTF (const TFileName RTFfilename) |
| Convert a RTF file to a HTML string. | |
| AnsiString | RichEditToHTML (const TRichedit Source) |
| Convert the RichEdit RTF code to HTML/XHTML. | |
This class implements the high-level converter methods ConvertRTFFile and RichEditToHTML. The third conversion method, TSxBase.Convert, is defined in the superclass.
| TCustomScrooge::ConvertRTFFile | ( | const TFileName | RTFFilename, | |
| const TFileName | HTMLFilename | |||
| ) |
Convert a RTF file to a HTML file.
To write an application which can convert a RTF file to a HTML/XHTML file,
var
RTFFile, XHTMLFile: AnsiString;
begin
RTFFile := 'c:\windows\desktop\test.rtf';
XHTMLFile := 'c:\windows\desktop\test.html';
ScroogeXHTML1.ConvertRTFFile(RTFFile, XHTMLFile);
end;
| AnsiString TCustomScrooge::ConvertRTF | ( | const TFileName | RTFfilename | ) |
Convert a RTF file to a HTML string.
| AnsiString TCustomScrooge::RichEditToHTML | ( | const TRichedit | Source | ) |
Convert the RichEdit RTF code to HTML/XHTML.
To write an application which can save the contents of a RichEdit component to XHTML file...
htmlString := ScroogeXHTML1.RichEditToHTML(RichEdit1);
1.5.4