Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PDF Printing and VFP9 1

Status
Not open for further replies.

Scott24x7

Programmer
Jul 12, 2001
2,828
JP
All,
I have Acrobat 8 installed on my machine, and under all MS Office products (word, excel, etc.) I can chose to "Adobe PDF" as a "printer driver" when printing a document, and it works fine. However, when I select this option when printing a report in VFP9 (with or without service packs applied), it hangs VFP, and I wind up having to kill the application to get it to restart, and I never get my document created as a PDF. Is this a common problem, and does anyone know how to resolve it?


Best Regards,
Scott

"Everything should be made as simple as possible, and no simpler."[hammer]
 
I don't have Acrobat, but I do have a PDF driver installed (the one that comes with SnagIT) and I can choose that printer when running a report.

Tamar
 
Like Tamar, I do not use Acrobat for PDF File 'printing', but I do use another PDF print driver.

One problem that I have encountered was due to many PDF print drivers needing to have parameters passed to them during the file creation. Parameters such as destination file name, etc are often part of the requirements for these drivers.

If you are already handling that, then I am off-target with this response.

For my own PDF printing I use a driver which I can intentionally pre-configure to always output the PDF document to the same known destination with the same filename.
By doing so, after I have programatically set the workstation default printer to the PDF 'printer', I then do not need to pass any parameter to the driver other than the REPORT FORM <whatever> TO PRINTER NOCONSOLE command.

Once the document has been created, due to the permanent pre-configuration, the VFP application 'knows' where the document is and what it will be named.
I then use VFP programming to re-name the document and, if necessary, move it wherever I need and/or attach it to an email for sending.

This process works for me to send out 100's of unique PDF documents each morning as email attachments.

Good Luck,
JRB-Bldr
 
JRB,
Thanks, I reconfigured the PDF print driver to place the document in a specific folder, and now it is working. I'll just have to include this in my "Help" file to give people directions for using PDF when they have it installed. (I don't distribute a PDF writer with my application, but I have some users who will want to use it.)
Great tip, thanks, stars to you!


Best Regards,
Scott

"Everything should be made as simple as possible, and no simpler."[hammer]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top