Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adobe Acrobat - Printing PDF Reports from VFP
Message
From
01/11/2001 11:56:20
 
 
To
01/11/2001 11:28:20
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00576144
Message ID:
00576228
Views:
20
>
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform