PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Use in the report code
  • Printers and Mobile Device (Pocket PC)
  • Various
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 the iPhone/iPad applications.
New in version 18
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the 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 the Android applications.
New in version 19
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the 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.
// Prints 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.

Various

iPageWidth returns the printable width of a page.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230prn.dll
Windows Mobile wp230prn.dll
Java wd230java.jar
Linux wd230prn.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment