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
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
Prints a document in "docx" format.
Ejemplo
MyDocument is Document = "c:\temp\proposal.docx"
iDestination(iViewer)
iPrintDoc(MyDocument)
Sintaxis

Printing the content of a Word Processing control or a Document variable Ocultar los detalles

<Result> = iPrintDoc(<Document>)
<Result>: Boolean
  • True if the document is valid for printing,
  • False otherwise.
<Document>: Document variable or control name
Document to print. This document corresponds to:
  • WINDEV the name of a Word Processing control.
  • a variable of type Document.
WINDEV

Printing the content of a Word Processing control with resizing Ocultar los detalles

<Result> = iPrintDoc(<Word Processing control> [, <Sizing>])
<Result>: Boolean
  • True if the document is valid for printing,
  • False otherwise.
<Word Processing control>: Control name
Name of the Word Processing control that displays the document to print.
<Sizing>: Integer constant
Print size:
iHomotheticHomothetic enlargement or reduction of the document pages to adapt them to the output format, ignoring physical margins.
iHomotheticWithoutGrowthHomothetic reduction of the document pages to adapt them to the output format, ignoring physical margins. Pages with a smaller format keep their format and are centered.
iHomotheticNoEnlargementPrintableAreaHomothetic reduction of the document pages to adapt them to the output format, taking into account physical margins. Pages with a smaller format keep their format and are centered.
iRealSizePrint in real size. The pages that use a format:
  • smaller than the output format are centered in the page.
  • bigger than the output format are truncated and are centered in the page.

Print the content of a "docx" file, a Buffer variable or a binary memo Ocultar los detalles

<Result> = iPrintDoc(<Element to print> [, <Password>])
<Result>: Boolean
  • True if the document is valid for printing,
  • False otherwise.
<Element to print>: String, Buffer or binary memo
  • Name and path of the "docx" file to be printed.
  • Name of Buffer variable to print.
  • Name of binary Memo item to print.
<Password>: Optional string or Secret string
  • Password to open the element to print ("docx" file, content of Buffer variable, content of Binary memo variable).
  • Empty string ("") if the element to print has no password.
Novedad versión 2025
Cadenas secretas: Si utiliza el almacén de cadenas secretas, el tipo de cadena secreta utilizado para este parámetro debe ser "ANSI o Unicode string".
Para obtener más información sobre las cadenas secretas y el almacén, consulte Almacén de cadenas secretas.
Clasificación Lógica de negocio / UI: Código neutro
Componente: wd300mdl.dll
Versión mínima requerida
  • Versión 22
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 16/05/2025

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