13.07.2015 Views

Reports & Queries - Source : www.pcsoft-windev-webdev.com

Reports & Queries - Source : www.pcsoft-windev-webdev.com

Reports & Queries - Source : www.pcsoft-windev-webdev.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

14.3.2 Method 2: Quick setting: direct useThis method is as follows:1. Use iParameterWatermark to specify the text of the watermark that must be added into your report. Inthis case, the "Arial" font is used, with an automatic size and with an opacity set to 20%.2. Start printing the report.Example 1: Code used to print a watermark in background of a report created with the report editor// Print previewiPreview()// Indicates that the watermark will be printed during// the print and in the duplicate copiesiParameterWatermark("Confidential")// Starts printing the reportiPrintReport(RPT_Commercial)Example 2: Code used to print a watermark in background of a report created with the print functions:// Print previewiPreview()// Implement a watermark in document background// onlyiParameterWatermark(iWatermarkPrinting, "Confidential")// Prints several pages with watermarkFOR i=6 TO 10iPrint(" Page " + i)iSkipPage()END// The last page is empty and it has no watermark// Ends the printiEndPrinting()134Part 1: Report editor

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!