Page 1 of 1

Making and Emailing a PDF

Posted: Wed May 06, 2009 10:19 pm
by feetdontfailme
I use Microsoft Access VBA to make a PDF of a report. That part works. But, I use another subroutine to email that pdf as an attachment, because Outlook does not exist on the server that Access is on, and I often get that file cannot be found type of errors from the email subroutine. Even with sleep set to 500, there seems to be no good way to make sure that the PDF exists before trying to attach it to an email. Am I wrong? The PDF actually does get made, in the appropriate folder, and I can find it after the error happens, so obviously it is a timing issue. I thank you all in advance for your time and your replies.

Re: Making and Emailing a PDF

Posted: Sat May 09, 2009 7:59 pm
by jr
There are several ways to determine that the output document is ready. The problem is that your own program continues after the print is sent to the spooler. However, the PDF creation continues after the job has reached the spooler.

You can use the StatusFile setting to determine if the document is ready. The setting is documented at the link below.

http://www.biopdf.com/guide/settings.php

Regards,
Jacob

Re: Making and Emailing a PDF

Posted: Thu May 14, 2009 10:17 pm
by feetdontfailme
Thank you for your reply. My question is, what extension would you use (what file type) is the StatusFile? I thank you in advance for your replies and your time

Re: Making and Emailing a PDF

Posted: Sun May 17, 2009 10:08 am
by jr
The status file is just a text file. It resembles an ini file in the structure.

/Jacob

Re: Making and Emailing a PDF

Posted: Thu Jun 25, 2009 1:18 pm
by wait
Hello, I'm having similar problem and have one question is the StatusFile created after the printing process and when the pdf file is ready or do I have to check the content of the file ?