|
|
|
|
RTFToHTML (Function) In french: RTFVersHTML Returns the HTML string corresponding to the specified RTF string. Syntax
<Result> = RTFToHTML(<RTF text or Name of RTF control> [, <Options>])
<Result>: Character string Text in HTML format <RTF text or Name of RTF control>: Character string - Name of RTF control,
This type of parameter is not supported. - Character string in RTF.
<Options>: Integer constant Conversion options: | | rthOptionCompatible | Used to restore the operating mode of version 22 (and earlier). In this case: - The tables are not supported.
- If the images have been included in the RTF (and not linked to the RTF document), they will appear as a set of number in the HTML document.
| rthOptionNone (Default value) | New conversion mode used to manage the images and the tables. Remarks: - The new conversion mode is available in Windows only.
- The nested tables are not supported.
|
Remarks Character encoding By default, special and accented characters are not encoded in the HTML string returned by RTFToHTML. Depending on how the HTML content is used, it may be necessary to encode it. For example, if the returned HTML content is assigned to the HTML Editor control, it will have to be converted to UTF-8 with StringToUTF8.
Related Examples:
|
Unit examples (WINDEV): Switching from the RTF format to the HTML format
[ + ] Using RTFToHTML and RTFToText.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|