Michael Madigan wrote: > This comes up every now and then, but I was wondering if there is some new > product available that will let me generate a print file from foxpro, an > email address, subject, body, and it will generate the pdf, attach it to the > email, and send it. > > The program that I wrote several years ago for another client never really > worked flawlessly. I.E, Adobe would remain open, the pdf generator would > hang, the generator would finish after the email module grabbed the pdf, etc. > > What would be your approach to this seemingly simple problem.
I do it from VFP (should work from Fox 2.5 as well) by installing the Adobe Generic Postscript Printer Driver, Ghostscript, and a program called "converter.exe" which gets installed with Ghostscript that converts postscript to pdf files. I then use blat.dll to attach the pdf file(s), and send the mail using the email server on the local network. I also send a BCC of the email to the employee that sent the mail, in lieu of it appearing automatically in their "Sent Items" folder. It works very well and flawlessly (10 employees send dozens of messages per day each, and there haven't been any issues reported), but it did take a few days to get it set up and forms and classes built, etc. I evaluated but did not use CutePDF because the free version always prompts the user for a file name, and I didn't want to expose anything but my app to the user, to avoid frustration and confusion. I didn't want to burden my customer with more license fees by purchasing CutePDF for all workstations, so I rolled my own using free and open source materials. Paul _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

