Sets passwords for PDF and Word document protection.
...
If set to .T., Word will ask for the password even when the document is being opened first time after the generation (if DoNotOpenViewer property is set to .F.). Default value is .F.
Remarks
Applies To: XFRX#INIT, XFRX#LISTENER, PDF#READER, PDFL#INIT, oXFRX
XFRX version: 23.0 for oXFRX
Examples
Code Block | ||
---|---|---|
| ||
LOCAL m.lnErr m.loXFRX=EVALUATE([xfrx("XFRX#INIT")]) m.loXFRX.setPasswords('ownerpwd') m.lnErr=m.loXFRX.SetParams(,,,,.T.,,"PDF") IF m.lnErr<>0 ?m.loXFRX.ErrorMessage(m.lnErr) ELSE ENDIF |
...