Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Print a PDF from within FoxPro
Message
 
 
À
17/10/2003 16:08:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00839903
Message ID:
00839914
Vues:
28
Hi, Mark.

>I have an application that includes documentation in PDF format. I can display the PDF files from within FoxPro, but I would like to be able to print the files without having the user open them first and then print them. Is there a way to automate this so that the user can select the documents they want to print and then the program can send them to the printer?

Acrobat Reader supports the PRINT verb.

You can use:
DECLARE INTEGER ShellExecute IN "Shell32.dll" ;
 INTEGER hwnd, STRING lpVerb, STRING lpFile, STRING lpParameters, ;
 STRING lpDirectory, LONG nShowCmd

=Shellexecute( 0,"Print","YourDocument.PDF","","",0)
What's best with this approach is that if your user has any alternative to handle PDF files, it still works.

Hope this helps,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform