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.
  • Properties specific to the description of Watermark variables
  • Functions that use the Watermark variables
  • Reinitialization
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
The Watermark type is used to handle the text printed in watermark in the reports created with the report editor or through programming.
The Watermark type is used to define the advanced characteristics of the text in watermark. The characteristics of this text can be defined and modified using different WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Versions 27 and later
WINDEVLinux This type of variable is now available for WINDEV applications in Linux.
WEBDEV - Server codeLinux This type of variable is now available for WEBDEV sites in Linux.
New in version 27
WINDEVLinux This type of variable is now available for WINDEV applications in Linux.
WEBDEV - Server codeLinux This type of variable is now available for WEBDEV sites in Linux.
WINDEVLinux This type of variable is now available for WINDEV applications in Linux.
WEBDEV - Server codeLinux This type of variable is now available for WEBDEV sites in Linux.
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 duplicata
iParameterWatermark(iWatermarkPrinting + iWatermarkDuplicate, MonFiligrane)
 
// Lance l'impression de l'état
iPrintReport(ETAT_Commercial)
Remarks

Properties specific to the description of Watermark variables

The following properties can be used to handle a text as watermark:
Property nameType usedEffect
AngleInteger constantInclination angle of watermark text. This angle can correspond to one of the following constants:
  • iFontAngle: the inclination angle of the text corresponds to the angle defined in the font.
  • iDownwardDiagonal: the text is printed on a 45° downward diagonal.
  • iUpwardDiagonal: the text is printed on a 45° upward diagonal.
  • iHorizontal: the text is printed horizontally.
Before version 24, this property was named "Orientation".
OpacityentierWatermark text opacity percentage. This percentage varies from 0 (invisible text) to 100 (totally opaque text).
FontFont variableCharacteristics of the font that must be used for the watermark text.
PositionInteger constantConstant (or combination of constants) used to define the position of watermark text:
  • iBottom: the text is aligned at the bottom of text area.
  • iCenterH: the text is horizontally centered in the text area.
  • iCenterV: the text is vertically centered in the text area.
  • iRight: the text is aligned on the right of text area
SizeInteger constantFont size. This size corresponds to one of the following constants:
  • iAutomatic: the font size is automatically chosen according to the length the watermark text and to the width of report.
  • iFontSize: the size defined in the font is used.
TextCharacter stringText of the watermark.

Functions that use the Watermark variables

Versions 17 and later
iParameterWatermark
New in version 17
iParameterWatermark
iParameterWatermark
Adds a watermark into a report (report created in the report editor or printed report).

Reinitialization

To reinitialize the content of a Watermark variable, you have the ability to use VariableReset.
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, ...)
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment