Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Open and Print a PDF file
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00773960
Message ID:
01270574
Vues:
35
Sergey,
all that fuss and I never tried the print command without loading the file 1st. I had assumed that Adobe had to be open with the correct file before the print command would work.

I printed 8 files using just the print command and it worked as advertised. I does leave one empty Adobe session open but I can live with that.

Thanks,
John.

>Hi John,
>
>You dont' have to open a PDF file. You can use 'Print' verb to do printing w/o user interaction. It'll print to the defaul Windows printer.
>* Print PDF file
>=Shellexecute(0,"Print", lcPDFfile, "","",0)
>
>
>>I am able to create and save PDF files using XFRX and store the details in a DBF. Using your code samples I can launch Adobe to display and print any saved PDF file. The user simply selects the file from the pick list. (Actually a grid showing the PDF details with a check box to select the desired files.) However, this requires the user to load and print each PDF separately.
>>
>>The part I don't have is printing all the selected PDF files in one batch without further user intervention.
>>
>>(Thanks for your time waiting for me to explain this properly.)
>>John.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform