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 width (in millimeters) of the printable page while taking the left or right 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> = iPageWidth(<Font Identifier>)
<Result>: Real
Page width:
  • in millimeters if the <Font Identifier> parameter is not specified.
  • in number of characters that can be printed with the <Font Identifier> font. If the <Font Identifier> font is a proportional font, the number returned corresponds to the average number of characters that can be printed.
AndroidAndroid Widget Java Page width in millimeters.
<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.
AndroidAndroid Widget Java This parameter is not available.
Remarks
WINDEVWEBDEV - Server codeReports and QueriesiPhone/iPadWindows MobileUniversal Windows 10 AppAjaxUser code (UMC)

Use in the report code

If iPageWidth is used:
  • after the report opening code, the result corresponds to the report printable width (page width - left and right margins).
  • in the report opening code, the result corresponds to the physical printable width (page width - 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

iPageHeight lets you find out the printable height 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