ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Print functions
  • Use in the report code
  • Miscellaneous
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Calculates the height of printable page (in millimeters) while taking the top or bottom margins into account.
// Print the sheet dimensions (in mm)
iPrint("Page width: " + iPageWidth() + "mm")
iPrint("Page height: " + 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
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 QueriesUniversal Windows 10 AppiPhone/iPadUser code (UMC)Ajax

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

Miscellaneous

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

Last update: 06/21/2023

Send a report | Local help