ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Print functions
  • Properties specific to Watermark variables
  • Functions that use Watermark variables
  • Reinitialization
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The Watermark type is used to handle the text printed in watermark in the reports created with the report editor or programmatically.
The Watermark type is used to define the advanced characteristics of the text in watermark. You can define and change the characteristics of this text using different WLanguage properties.
Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
New in version 2025
Android This type of variable is now available for Android applications.
Android Widget This type of variable is now available in Android widget mode.
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)
Properties

Properties specific to Watermark variables

The following properties can be used to handle a text as watermark:
Property nameType usedEffect
AngleInteger constantTilt angle of the watermark text. This angle can correspond to one of the following constants:
  • iAnglePolice text tilt angle corresponds to the angle defined in the font.
  • iDiagonalDescending text is printed on a 45° descending diagonal.
  • iDiagonalMounting text is printed on a 45° rising diagonal.
  • iHorizontal text is printed horizontally.
Before version 24, this property was named "Orientation".
FontFont variableCharacteristics of the font that must be used for the watermark text.
AndroidAndroid Widget This property is not available. By default, the watermark uses the "Arial, Helvetica" font family..
OpacityIntegerWatermark text opacity percentage. This percentage varies from 0 (invisible text) to 100 (totally opaque text).
PositionInteger constantConstant (or combination of constants) used to define the position of watermark text:
  • iBas text is aligned at the bottom of the text area.
  • iCentreH text is centered horizontally in the text area.
  • iCentreV text is centered vertically in the text area.
  • iRight text is aligned to the right of the text area
SizeInteger constantFont size. This size corresponds to one of the following constants:
  • iAutomatic font size is automatically selected according to watermark text length and report width.
  • iToliceSize: the size defined in the font is used.
TextCharacter stringWatermark text.
Remarks

Functions that use Watermark variables

iParameterWatermarkAdds a watermark into a report (report created in the report editor or printed report).

Reinitialization

You can use VariableReset to reset the content of a Watermark variable.
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 11/05/2024

Send a report | Local help