PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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)
// Margin in height
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