PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Use in the report code
  • Printers and Mobile Device (Pocket PC)
  • Miscellaneous
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
Calculates the height of printable page (in millimeters) while taking the top or bottom margins into account.
Versions 18 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 18
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Versions 19 and later
Android Widget This function is now available in Android Widget mode.
Android This function is now available for Android applications.
New in version 19
Android Widget This function is now available in Android Widget mode.
Android This function is now available for Android applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for Android applications.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
// Print the sheet dimensions (in mm)
iPrint("Width of page: " + iPageWidth() + "mm")
iPrint("Height of page: " + iPageHeight() + "mm")
iEndPrinting()
Syntax
<Result> = iPageHeight(<Font identifier>)
<Result>: Real
Page height:
  • in millimeters if the <Font identifier> parameter is not specified,
  • in number of lines that can be printed with the <Font identifier> font.
<Font identifier>: Character string (with quotes)
Identifier of font used, returned by iFont or specified when the font was created by iCreateFont. If this parameter is not specified, the last font used will be selected.
Remarks
WINDEVWEBDEV - Server codeReports and QueriesiPhone/iPadWindows MobileUniversal Windows 10 AppAjaxUser code (UMC)

Use in the report code

If iPageHeight is used:
  • after the report opening code, the result corresponds to the report printable height (page height - top and bottom margins).
  • in the report opening code, the result corresponds to the physical printable height (page height - top and bottom physical margins of the printer).
Windows Mobile

Printers and Mobile Device (Pocket PC)

No information is read from the printer.
The physical margins of the printer depend on the printer selected in the configuration window of the printer.
Example: If you use the default type ("Universal PCL"), the margins used are as follows:: right and left = 0.635 cm (=0.25 in), top and bottom =0.508 cm (=0.2 in).
Caution: the print coordinates sent by WINDEV Mobile to the printer are expressed in logical coordinates (which means inside the "printable area of the page"). If the physical margins of the printer are different, the print will be shifted accordiing to the page edge.

Miscellaneous

iPageWidth returns the printable width of a page.
Component : wd240prn.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment