XFRX#WATERMARK Class
Since XFRX 22.0
XFRX#WATERMARK class can add watermarks, text or image on each page.Â
Internal name is _XFRX_WATERMARK.
Initliazize this object after calls SetParams() methos.
Constructor
Watermark Text Methods
Watermark Image Methods
Create watermark text above page content
USE demoreps\invoices ORDER customer LOCAL m.loSession, m.lnRetval m.loSession= xfrx("XFRX#INIT") m.lnRetVal = m.loSession.SetParams("output.pdf",,,,,,"PDF") IF m.lnRetVal = 0 m.loWM=EVALUATE([xfrx("XFRX#WATERMARK", m.loSession)]) m.loWM.SetText("W A T E R M A R K", ,.T.) m.loWM.SetFont("Tahoma", 15, "B") m.loSession.ProcessReport("report1") m.loSession.ProcessReport("report2") m.loSession.finalize() ELSE ? m.lnRetVal, m.loSession.ErrorMessage(m.lnRetVal) ENDIF