PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
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 text in Watermark in an report (report created in the report editor or report created in WLanguage).
Example
// Impression d'un filigrane en fond d'un état
MonFiligrane is Watermark
 
// Texte du filigrane
MonFiligrane.Text = "Confidentiel"
// Police utilisée
MonFiligrane.Font.Name = "Arial"
// Le filigrane sera imprimé en centré horizontalement et en bas
MonFiligrane.Position = iCenterH + iBottom
 
// Impression dans le visualisateur de rapports
iDestination(iViewer)
 
// Indique que le filigrane sera imprimé lors de l'impression et dans les duplicatas
iParameterWatermark(iWatermarkPrinting + iWatermarkDuplicate, MonFiligrane)
 
// Lance l'impression de l'état
iPrintReport(ETAT_Commercial)
// Syntaxe disponible à partir de la version 170069
// Impression d'un filigrane en fond d'un état
// Indique que le filigrane sera imprimé lors de l'impression et dans les duplicatas
iParameterWatermark("Confidentiel")
 
// Lance l'impression de l'état
iPrintReport(ETAT_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: wd270prn.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment