ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / RTF functions
  • Limitation of RTF format
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Loads a file in RTF in an RTF control (found in a window or in a WINDEV report).
Please note It is not possible to retrieve the arrays and images present in the RTF document.
Example
// Charge le fichier "C:\Temp\FichierExemple.RTF" dans le champ SAI_Saisie1
RTFLoad(SAI_Saisie1, "C:\Temp\FichierExemple.RTF")
Syntax
<Result> = RTFLoad(<Name of the RTF control> , <RTF file name>)
<Result>: Boolean
  • True if the file was loaded,
  • False otherwise. The error status report is returned by ErrorInfo.
<Name of the RTF control>: Character string
Name of the RTF control to be used.
<RTF file name>: Character string
Name of the RTF file to open. This file can be found on a disk accessible from the current computer or in the application library (WDL).
Remarks

Limitation of RTF format

The format of RTF files managed by WINDEV is the same as the RTF format managed by Wordpad (up to Windows XP). Some additional limits must be noticed when exporting a report to an RTF document (the tables are not supported for instance).
If the RTF file is generated by another tool (Word, etc.), it is recommended to open the file with Wordpad to check the RTF compatibility. Wordpad will provide a more realistic print preview.
In all cases, we recommend that you re-save the file in Wordpad to force RTF. In WINDEV, RTFLoad forces the use of RTF. Simply use RTFLoad to assign the file to the RTF control
Component: wd300obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help