PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns the HTML string corresponding to the specified RTF string.
Versions 19 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
New in version 19
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
Versions 21 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
WINDEV
// EDT_RTF is RTF control
// sHTML is HTML string
// HTM_HTML1 is HTML control
sHTML = RTFToHTML(EDT_RTF)
sTmp is string = "<HTML>" + sHTML + "</HTML>"
HTM_HTML1 = sTmp
LinuxiPhone/iPadUniversal Windows 10 App
// MyRTF_String is RTF string
// sHTML is HTML string
// HTM_HTML1 is HTML control
sHTML = RTFToHTML(MyRTF_String)
sTmp is string = "<HTML>" + sHTML + "</HTML>"
HTM_HTML1 = sTmp
WINDEV
// EDT_RTF is RTF control
// sHTML is HTML string
// HTM_HTML1 is HTML control
// Use the management of tables and images (version 23 and later)
sHTML = RTFToHTML(EDT_RTF, rthOptionNone)
sTmp is string = "<HTML>" + sHTML + "</HTML>"
HTM_HTML1 = sTmp
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 (with or without quotes)
  • Name of RTF control,
    WEBDEV - Server codeiPhone/iPadUniversal Windows 10 App This type of parameter is not supported.
  • Character string in RTF format.
<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.
Notes:
  • 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.
LinuxiPhone/iPadUniversal Windows 10 App This parameter is not available. On these platforms:
  • 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.
Notes:
  • 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.
LinuxiPhone/iPadUniversal Windows 10 App This parameter is not available. On these platforms:
  • 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.
Notes:
  • 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.
LinuxiPhone/iPadUniversal Windows 10 App This parameter is not available. On these platforms:
  • 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.
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.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230rtf.dll
Linux wd230rtf.so
Minimum required version
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment