Making and Emailing a PDF

About the programming interface for the virtual PDF printer driver.

Moderator: jr

Making and Emailing a PDF

Postby feetdontfailme » Wed May 06, 2009 10:19 pm

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.
feetdontfailme
 
Posts: 2
Joined: Wed May 06, 2009 8:42 pm

Re: Making and Emailing a PDF

Postby jr » Sat May 09, 2009 7:59 pm

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
jr
Site Admin
 
Posts: 491
Joined: Sun Mar 26, 2006 12:28 pm

Re: Making and Emailing a PDF

Postby feetdontfailme » Thu May 14, 2009 10:17 pm

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
feetdontfailme
 
Posts: 2
Joined: Wed May 06, 2009 8:42 pm

Re: Making and Emailing a PDF

Postby jr » Sun May 17, 2009 10:08 am

The status file is just a text file. It resembles an ini file in the structure.

/Jacob
jr
Site Admin
 
Posts: 491
Joined: Sun Mar 26, 2006 12:28 pm

Re: Making and Emailing a PDF

Postby wait » Thu Jun 25, 2009 1:18 pm

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 ?
wait
 
Posts: 1
Joined: Thu Jun 25, 2009 1:13 pm


Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests

cron