|
|
|
|
- Presentación
- Creando un Watermark desde el visor de reporte
- Creación de una Watermark a través de la programación
- Método 1: Configuración completa: usando un Watermark Variable
- Método 2: Configuración rápida: empleo directo
Imprimir un texto de Watermark
Un reporte (y un duplicado) puede incluir un texto adicional en forma de marca de agua, como por ejemplo, "Confidencial" o "Duplicado" impreso en todo el reporte. El Watermark puede ser creado: - del espectador de reporte (sólo WINDEV).
- mediante programación.
Observaciones: - Si se define un Watermark para un reporte, se define para todas las páginas del reporte.
- Se puede definir un solo Watermark para cada reporte. No se pueden definir varias marcas de agua.
- La Watermark se imprime en las páginas que contienen información únicamente. No se imprime en páginas vacías.
Creando un Watermark desde el visor de reporte Creación de una Watermark a través de la programación Se pueden utilizar diferentes métodos para crear una Watermark a través de la programación: Método 1: Configuración completa: usando un Watermark Variable Este método es el siguiente: - Definir Watermark Variable. Esta variable contiene todas las características de la Watermark a imprimir.
- Utilice iParameterWatermark para añadir la marca de agua en su reporte.
- Empiece a imprimir la reporte.
Por ejemplo: - Código WLanguage utilizado para imprimir un Watermark en el Background de un reporte creado con el editor de reportes:
// Print a watermark in report background MyWatermark is Watermark // Text of the watermark MyWatermark.Text = "Confidential" // Font used MyWatermark.Font.Name = "Arial" // The watermark will be horizontally centered at bottom MyWatermark.Position = iCenterH + iBottom // Print in the report viewer iDestination(iViewer) // Indicates that the watermark will be printed during the print // and in the duplicate copies iParameterWatermark(iWatermarkPrinting + ... iWatermarkDuplicate, MyWatermark) // Starts printing the report iPrintReport(RPT_Commercial)
- Código de idioma usado para imprimir un Watermark en el Background de un reporte creado con las funciones de impresión:
MyWatermark is Watermark // Text of the watermark MyWatermark.Text = "Confidential" // Print in the report viewer iDestination(iViewer) // Implement a watermark in document background only iParameterWatermark(iWatermarkPrinting, MyWatermark) // Prints several pages with watermark FOR i = 6 TO 10 iPrint(" Page " + i) iSkipPage() END // The last page is empty and it has no watermark // Ends the print job iEndPrinting()
Método 2: Configuración rápida: empleo directo Este método es el siguiente: - Utilice iParameterWatermark para especificar el texto del Watermark que se añadirá a su reporte. En este caso, se utiliza el tipo de letra "Arial", con un tamaño automatic y con una opacidad set a 20%.
- Empiece a imprimir la reporte.
Por ejemplo: - Código WLanguage utilizado para imprimir un Watermark en el Background de un reporte creado con el editor de reportes:
// Print in the report viewer iDestination(iViewer) // Indicates that the watermark will be printed during the print // and in the duplicate copies iParameterWatermark("Confidential") // Starts printing the report iPrintReport(RPT_Commercial)
- Código de idioma usado para imprimir un Watermark en el Background de un reporte creado con las funciones de impresión:
// Print in the report viewer iDestination(iViewer) // Implement a watermark in document background only iParameterWatermark(iWatermarkPrinting, "Confidential") // Prints several pages with watermark FOR i = 6 TO 10 iPrint(" Page " + i) iSkipPage() END // The last page is empty and it has no watermark // Ends the print job iEndPrinting()
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|