Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Xfrx -pdf
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
Miscellaneous
Thread ID:
01528981
Message ID:
01529292
Views:
45
Hi Martina,

My fault... I used a variable for the password and forgot to set that variable to a value. So I was passing a blank password and XFRX was doing exactly what it was supposed to do.

Thanks,

Ken


>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
>
>*set Coverage to x:\xfrx\invoicesx.log
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform