ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Print functions
  • Print characteristics
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
Sends the character string passed as parameter to the print buffer. The print cursor is positioned at the end of the character string. The print job is not started (only iEndPrinting can be used to start the print job).
Remark: unlike iPrint, no line break is automatically inserted at the end of string. If a string is printed after iPrintWord, it will be printed on the same line.
Example
iPrintWord(iFont(1) + "Text using font 1")
iPrintWord(iFont(2) + "Text using font 2")
iPrint()
iEndPrinting()
// Example for printing a secure PDF with password
// In this example, the password is "password"
iParameterPDF("opening", "password", iProtectionPrinting + iProtectionSélection)
// Create the PDF file
iDestination(iPDF, "MyPDF.PDF")
// Print code
iCreateFont(1, 16, iBold, iRoman)
iPrintWord("First line of my PDF" + CR + "Second line of my PDF" + CR + ...
"Last line of my PDF")
// End of print and close the created PDF file
iEndPrinting()
// Display the PDF
ShellExecute(iLastFile())
Syntax
<Result> = iPrintWord([<Font identifier>+] [ <Horizontal position>+] <Text> [, <Truncated string>])
<Result>: Boolean
  • True if printed successfully,
  • False if the print job was canceled.
<Font identifier>: Optional integer
Identifier of the font used to print the text. This identifier is returned by iFont.
If this parameter is not specified, the last font used will be selected.
<Horizontal position>: Optional integer
X-coordinate of the point from which the print must be performed. This position is specified in number of columns from the top left border of the sheet (with iXPos).
If this parameter is not specified, the text is printed at the current position.
<Text>: Character string
Character string to print.
<String on next page>: Optional boolean
Specifies whether the text printed at the end of the page must be truncated or whether it must continue over the next page:
  • True (default value): the string will be printed on the next page if it does not fit on a single page.
  • False: the character string is truncated: the rest of the string is not printed on the next page.
Remarks

Print characteristics

  • The origin (0,0) is located in the upper-left corner of the sheet. It takes the physical margins of the printer into account.
  • iPrintWord does not manage the vertical position.
  • A set of call to iPrintWord must always end with a call to iPrint that will transfer the strings into the print buffer.
  • The TAB character (Char(9)) is not interpreted. The line break character (Char(10)) is interpreted as a skip to the next line.
Component: wd290prn.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