Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Xfrx -pdf
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Titre:
Divers
Thread ID:
01528981
Message ID:
01529277
Vues:
78
This message has been marked as a message which has helped to the initial question of the thread.
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
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform