AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de impresión
  • Print characteristics
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
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 the iPrint function, no line feed is automatically inserted after the end of the string.. If a string is printed after iPrintWord, it will be printed on the same line.
Ejemplo
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 + 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
iEndPrinting()
// Display the PDF
ShellExecute(iLastFile())
Sintaxis
<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 of 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.
Observaciones

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.
Componente: wd300prn.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local