Help / WLanguage / WLanguage functions / Standard functions / Print functions
  • Use in the report code
  • Miscellaneous
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
Calculates the width (in millimeters) of the printable page while taking the left or right margins into account.
// Print the sheet dimensions (in mm)
iPrint("Page width: " + iPageWidth() + "mm")
iPrint("Page height: " + iPageHeight() + "mm")
<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
Identifier of font used, returned by iFont or specified when the font was created by iCreateFont. If this parameter is not specified, the page width will be returned in millimeters.
AndroidAndroid Widget Java This parameter is not available.
WINDEVWEBDEV - Server codeReports and QueriesUniversal Windows 10 AppiPhone/iPadUser code (UMC)Ajax

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).


iPageHeight lets you find out the printable height of a page.
Component: wd300prn.dll
Minimum version required
  • Version 9
This page is also available for…
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help