PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Character encoding
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Returns the HTML string corresponding to the specified RTF string.
Example
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,
  • Character string in RTF.
<Options>: Integer constant
Versions 23 and later
Conversion options:
Versions 23 and later
rthOptionNone
(Default value)
New in version 23
rthOptionNone
(Default value)
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.
Versions 23 and later
rthOptionCompatible
New in version 23
rthOptionCompatible
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.
New in version 23
Conversion options:
Versions 23 and later
rthOptionNone
(Default value)
New in version 23
rthOptionNone
(Default value)
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.
Versions 23 and later
rthOptionCompatible
New in version 23
rthOptionCompatible
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.
Conversion options:
Versions 23 and later
rthOptionNone
(Default value)
New in version 23
rthOptionNone
(Default value)
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.
Versions 23 and later
rthOptionCompatible
New in version 23
rthOptionCompatible
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.
Remarks

Character encoding

By Default, special and accented characters are not encoded in the HTML string returned by the RTFToHTMLfunction. Depending on the use of this HTML, it may be necessary to encode it. For example, if the HTML returned is assigned to the control HTML editor, it will be necessary to convert it to UTF8 with the StringToUTF8 function.
Related Examples:
Switching from the RTF format to the HTML format Unit examples (WINDEV): Switching from the RTF format to the HTML format
[ + ] Using RTFToHTML and RTFToText.
Component: wd270rtf.dll
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment