byron.hopp wrote:Thank you very much, you got my interest, but I do not want the preview screen to come up during this process. They need to print to the pdf file and the program immediately emails the file to the intended user. So I need to be able to identify the File Name, and Path, and product the pdf file, then make it an attachment to an email. Is this possible to do this?
Thanks,
This is also extremely simple
Use your PRINT command like this:
- Code: Select all Expand view
PRINT oPrn FILE "yourname.pdf"
<your print code>
ENDPRINT
By the time ENDPRINT command
finishes the job, "yourname.pdf" is created silently and is ready on the disk for you to send by email or do whatever.
Please do not get distracted by any other advices.