Home | Sign in | English EN
  • Characteristics of print
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Stored procedures
Sends the character string passed in parameter to the print buffer. The print cursor is positioned at the end of the character string. The print is not started (only iEndPrinting can be used to start the print).
Remark: unlike iPrint, no line break is automatically inserted at the end of string. If a character string is printed after iPrintWord, it will be printed on the same line.
iPrintWord(iFont(1) + "Text using font 1")
iPrintWord(iFont(2) + "Text using font 2")
// Example for printing a secure PDF with password
// In this example, the password is "password"
iParameterPDF("opening", "password", iProtectionPrinting + iProtectionSelection)
// 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
// Display the PDF
<Result> = iPrintWord([<Font identifier>+] [ <Horizontal position>+] <Text> [, <Truncated string>])
<Result>: Boolean
  • True if the print was performed,
  • False if the print 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 (with quotes)
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.

Characteristics of print

  • The origin (0,0) is located in the top left corner of the sheet. It takes the physical margins of 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: wd260prn.dll
Minimum version required
  • Version 9
This page is also available for…
Click [Add] to post a comment