PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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
Prints a text in a rectangular area. The print is not started (only iEndPrinting can be used to start the print).
iPrintZone("My Text", 0, 0, dHeight, 200, iCenterH, iCenterV)
Syntax
<Result> = iPrintZone(<Text> , <X1> , <Y1> , <X2> , <Y2> [, <Alignment> [, <Start> [, <End>]]])
<Result>: Integer
Number of characters printed in the rectangular area. If the entire text was printed, <Result> corresponds to the size of <Text>.
<Text>: Character string (with quotes)
Character string to print in a specific area.
<X1>: Real
Horizontal coordinate of top left corner of the print area (in millimeters).
Value included between 0 and the page width (returned by iPageWidth).
<Y1>: Real
Vertical coordinate of top left corner of the print area (in millimeters).
Value included between 0 and the page height (returned by iPageHeight).
<X2>: Real
Horizontal coordinate of bottom right corner of the print area (in millimeters).
Value included between 0 and the page width (returned by iPageWidth).
<Y2>: Real
Vertical coordinate of bottom right corner of the print area (in millimeters).
Value included between 0 and the page height (returned by iPageHeight).
<Alignment>: Optional Integer constant (or combination of constants)
Configures the text alignment in the area (iTop + iLeft by default).
iBottomText aligned at bottom.
iCenterHText horizontally centered.
iCenterVText vertically centered.
iRightText aligned to right.
iLeftText aligned to left.
iTopText aligned at top
<Start>: Optional integer
Subscript of first <Text> character to print. If this parameter is not specified, the <Text> is printed from the first character.
<End>: Optional integer
Subscript of last <Text> character to print. If this parameter is not specified, the <Text> is printed up to the last character.
Component : wd250prn.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment