PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
iParameterWatermark (Function)
In French: iParamètreFiligrane
Adds a watermark into a report (report created in the report editor or printed report).
Example
// 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 the bottom
MyWatermark..Position = iCenterH + iBottom

// Print preview
iPreview()

// 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:
iWatermarkDuplicateThe watermark is added onto the duplicate copies.
iWatermarkPrintingThe 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).
Note: This parameter is optional from version 170069.
<Watermark>: Watermark variable
Name of the Watermark variable corresponding to the text that will be printed in watermark.
Caution: Syntax available from version 170069

Configuring the watermark via a character string Hide the details

iParameterWatermark([<Destination> , ] <Text>)
<Destination>: Integer constant (or combination of constants)
Destination of the watermark:
iWatermarkDuplicateThe watermark is added onto the duplicate copies.
iWatermarkPrintingThe 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 (with quotes)
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:
WD Reports 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, ...)
Components
WINDEVWEBDEV - Server codeReports and Queries wd230prn.dll
Windows Mobile wp230prn.dll
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment