ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Rich Text Area control
  • Example: Calculating the physical margins of the printer
iPageWidth (Example)
Example: Calculating the physical margins of the printer
This example is used to calculate the physical margins of the printer.
// Reset the margins to 0
iMargin(0, 0, 0, 0)
// Vertical margin
MarginH = (PaperHeight - iPageHeight())/2
// Margin in width
MarginW = (PaperWidth - iPageWidth())/2
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help