AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / Desarrollar una aplicación o un sitio web / Controles, ventanas y páginas / Controles: tipos disponibles / Control Área de texto enriquecido
  • Example 1: Printing a report created with the report editor
  • Example 2: Print performed through programming
iParameterPDF (Example)
Example 1: Printing a report created with the report editor
WINDEVWEBDEV - Código ServidorReportes y ConsultasWindowsCódigo de Usuario (UMC)Ajax
The following example is used to print a report created with the report editor. The created PDF file is password-protected
// The PDF file is password protected
iParameterPDF("My password")
// Create the PDF file
iDestination(iPDF, "C:\Temp\MyPDF.PDF")
Example 2: Print performed through programming
WINDEVWEBDEV - Código ServidorReportes y ConsultasWindowsCódigo de Usuario (UMC)Ajax
The following example is used to print a report created via the print functions. The created PDF file is password-protected.
// 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())
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: 02/05/2023

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