ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Print functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
iParameterWatermark (Function)
In french: iParamètreFiligrane
Adds a watermark into a report (report created in the report editor or written in WLanguage).
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 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:
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).
<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:
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
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, ...)
Component: wd300prn.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help