PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Use in the report code
  • 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 width (in millimeters) of the printable page while taking the left or right margins into account.
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> = 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.
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 page width will be returned in millimeters.
Java This parameter is not available.
Remarks
WINDEVUniversal Windows 10 AppUser 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).

Miscellaneous

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