ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Rich Text Area control
  • Example: Calculates the height required to print a text in RTF format
iPrintAreaRTF (Example)
Example: Calculates the height required to print a text in RTF format
The following example is used to calculate the height of the area required to print a text in RTF. A border is drawn (according to the height that was previously defined) and the text is printed.
// Récupération de la hauteur de la colonne
dHauteur is real = iAreaHeight(sTexteRTF, 100, iRTF)
// Trace un cadre
iBorder(0, 0, dHauteur*2, 200)
// Texte centré dans le cadre
iPrintAreaRTF(sTexteRTF, 0, 0, dHauteur*2, 200)
iEndPrinting()
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