ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Rich Text Area control
  • 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
WEBDEV - Server codeWindowsAjax
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
WEBDEV - Server codeWindowsAjax
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())
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/02/2023

Send a report | Local help