|
|
|
|
|
iParameterWatermark (Function) In french: iParamètreFiligrane Adds a watermark into a report (report created in the report editor or written in WLanguage). // 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 duplicates iParameterWatermark(iWatermarkPrinting + iWatermarkDuplicate, MyWatermark)  // Starts printing the report iPrintReport(RPT_Commercial)
// Syntax available from version 170069 // Print a watermark in report background // Indicates that the watermark will be printed during the print and in the duplicates iParameterWatermark("Confidential") Â // Starts printing the report iPrintReport(RPT_Commercial)
Syntax
Configuring the watermark via a Watermark variable Hide the details
iParameterWatermark([<Destination>, ] <Watermark>)
<Destination>: Optional Integer constant (or combination of constants) Destination of the watermark: | | iWatermarkDuplicate | The watermark is added onto the duplicate copies. | iWatermarkPrinting | The watermark is added when printing or when exporting in PDF format. | If this parameter is not specified, the watermark is added onto the duplicate copy and when printing (iWatermarkDuplicate + iWatermarkPrinting). <Watermark>: Watermark variable Name of the Watermark variable corresponding to the text that will be printed in watermark.
Configuring the watermark via a character string Hide the details
iParameterWatermark([<Destination>, ] <Text>)
<Destination>: Integer constant (or combination of constants) Destination of the watermark: | | iWatermarkDuplicate | The watermark is added onto the duplicate copies. | iWatermarkPrinting | The watermark is added when printing or when exporting in PDF format. | If this parameter is not specified, the watermark is added onto the duplicate copy and when printing (iWatermarkDuplicate + iWatermarkPrinting). <Text>: Character string Text to print in a watermark. In this case, the "Arial" font is used, with an automatic size and with an opacity set to 20%.
Related Examples:
|
Training (WINDEV): WD Reports
[ + ] This example presents the different methods for creating a report: - prints based on different data sources (queries, variables, ...) - prints based on controls (Table, Spreadsheet, PVT, ...) - printing composite reports - specific prints (portrait/landscape, report with watermark, report with bar code, ...)
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|