Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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#LISTENERPDF#READERPDFL#INIT, oXFRX

XFRX version: 23.0 for oXFRX

Examples

Code Block
titlePDF
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

...