Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Characteristics of print
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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 string is printed after the function iPrintWord, it will be printed on the same row.
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.
iPrintWord(iFont(1) + "Texte en police 1")
iPrintWord(iFont(2) + "Texte en police 2")
// Exemple d'impression d'un PDF sécurisé avec mot de passe
// Dans cet exemple, le mot de passe est "motdepasse"
iParameterPDF("ouverture", "motdepasse", iProtectionPrinting + iProtectionSélection)
// Création du PDF
iDestination(iPDF, "MonPDF.PDF")
// Code d'impression
iCreateFont(1, 16, iBold, iRoman)
iPrintWord("Première ligne de mon PDF" + CR + "Seconde ligne de mon PDF" + CR + ...
"Dernière ligne de mon PDF")
// Fin de l'impression et fermeture du fichier PDF créé
// Affichage du 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
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.
  • The iPrintWord function 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: wd270prn.dll
Minimum version required
  • Version 9
This page is also available for…
Click [Add] to post a comment