Export(Text: String; Format: TextFormat);
Export(Text: string; Format: Prognoz.Platform.Interop.ForeSystem.TextFormat);
Text. Text that must be converted.
Format. Format, to which text is converted.
The Export method converts the passed text to the specified format.
The formats, from which text can be converted, are given in the TextFormat enumeration.
The specified function is used to convert the passed text in the HTML format into the text in the RTF format.
Function HtmlToRtf(html: String): String;
Var
Converter: ITextConverter;
Begin
Converter := New TextConverter.Create;
Return Converter.Export(html, TextFormat.Rtf);
End Function HtmlToRtf;
Imports Prognoz.Platform.Interop.ForeSystem;
…
Function HtmlToRtf(html: string): string;
Var
Converter: ITextConverter = New TextConverterClass();
Begin
Return Converter.Export(html, TextFormat.tfRtf);
End Function;
After the function is executed, the text is converted from the HTML format into the RTF format.
See also: