Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adobe Acrobat - Printing PDF Reports from VFP
Message
De
01/11/2001 11:56:20
 
 
À
01/11/2001 11:28:20
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00576144
Message ID:
00576228
Vues:
19
>
>Hmmmmm... Can I designate a file name and not have the print dialog display? Trying to automate a process that will create different PDF reports and then send automatic email with those as attachments.
>
>Renoir

Yes...here is one way (sort of).
set printer to name "Acrobat PDFWriter"
* set safety off  && you may want to do this
report form myReport to file "pdfTest." noconsole  && play with it and you will see
                                         && why I put the period there
Some comments:

The PDF reader will open, showing the report. This may or may not be acceptable. Processing will continue in VFP while the reader is opening. After the "REPORT FORM" line, you can check to see if the reader still has the file (treat it as a preview feature *grin*).
fh = fopen("pdfTest.pdf", 12)
if fh < 0 && the user is still previewing the file
You can put this in some sort of loop after the file is created, so processing can continue in the manner you desire.

Also, there may be an empty file called "pdfTest." in the same location as "pdfTest.pdf"

HTH,
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform