Hi Ken,
I don't know...
My example...
SET PATH to X:\xfrx\xfrx142-s\XFRX,X:\xfrx\xfrx142-s\XFRX\libs
SET defa to X:\xfrx\xfrx142-s\XFRX,X:\xfrx\xfrx142-s\XFRX\libs
close all
use demoreps\invoices order customer
SET FILTER to customer="Jane Rush"
local loSession, lnRetval
loSession=EVALUATE([xfrx("XFRX#INIT")])
lnRetVal = loSession.SetPasswords("owner", "user")
lnRetVal = loSession.SetParams("x:\xfrx\TESTpdf.pdf",,.T.,,,,"PDF")
If lnRetVal = 0
loSession.ProcessReport("demoreps\invoices")
loSession.finalize()
Endif
set Coverage to
and output PDF is password protect.
>Hi Martina,
>
>I used the order you suggested but the result is not what I need.
>
>I set the third parameter to .T.
>
>The file is produced in the background (Adobe is not called) and that is perfect, BUT the file is NOT password protected.
>
>What am I missing?
>
>Thanks,
>
>Ken
>
>
>>Hi Ken,
>>
>>
>>setPasswords()
>>setPermissions()
>>SetParams()
>>
>>
>>MartinaJ
>>
>>>Hi Dan,
>>>
>>>Your solution worked but it also turned off the password protection on the PDF files. Is it possible to do both? Maybe it is in the order of the commands?
>>>
>>>Thanks,
>>>
>>>Ken
>>>
>>>>Set the third parameter of SETPARAMS to .t. which will set it to not open the viewer after it is generated.
>>>>
>>>>-Dan
>>>>
>>>>>Hi,
>>>>>
>>>>>I am using XFRX to produce reports in PDF format.
>>>>>
>>>>>Works great except it automatically opens Adobe Reader. I would like to make that optional.
>>>>>
>>>>>Any suggestions?
>>>>>
>>>>>Thanks,
>>>>>
>>>>>Ken