XFRX#WATERMARK::Init Method

Watermark constructor.

XFRX#WATERMARK::Init(loSession [, tnZOrder [, tcPageScope [, tnNumberingType]]])

Parameters

loSession
A instance of XFRX#INIT or XFRX#LISTENER

tnZOrder
  0 ... print below (before) the report page (default value)
  1 ... print above (after) the report page

tcPageScope
  Defines which pages to invoke the scripts on. Can contain "ALL" (default value), "ODD", "EVEN" and numbers delimited with commas. Hyphens can be used to define the from-to scope. Examples: "ODD", "1,5-19", "ODD,4,8"

tnNumberingType
  Defines how XFRX determines the page number: 
0 ... absolute - the page number in the document (default value)
1 ... relative - the page number in the current report
2 ... the value of _PAGENO

Examples

m.loWM=EVALUATE([xfrx("XFRX#WATERMARK", m.loSession)])
m.loWM.SetText("W A T E R M AR K", ,.T.)