SetOrientation Method

Sets base orientation of watermark.

Object.SetOrientation(lcOrientation [, lnAngle])

Parameters

lcOrientation 

 Default  value is "portrait".

ValueDescription
'portrait'0The watermark orientation is portrait.
'landscape'1The watermark orientation is landscape.
'diagonal'2The watermark orientation is dialogonal from left-lower corner to right-upper corner.
'rotate'3The watermark is rotated around to center of the page.


lnAngle
 Angle in degree for orientation diagonal or rotate. Default value is 0.

Remarks

Applies To: XFRX#WATERMARK, WATERMARK-Text Object, WATERMARK-Image Object

Examples

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