convert report to pdf and then email

G

Guest

Right now I have code that will cycle through a report and email the correct
page to the correct person. But I need the report converted to a .pdf before
emailing it so that I can email a .pdf instead of a snapshot.
 
R

Ragnar Midtskogen

A simple way of doing this is to print it to a printer driver called
WIN2PDF. It is available form here:
http://www.win2pdf.com/?gclid=CLHorZDpqI8CFTaoGgodZ0a2SA
You use code to change the machines default printer to WIN2PDF, then you set
the file name, including the full path to the file, in the Registry. When
you print the report the file name setting in the Registry is cleared. The
setup file includes examples on how to do this.

You have to buy it, but I think the price was something like $30.

If you have Acrobat 5 (Not the reader, the full Acrobat) it comes with
PDFWriter which allows you to do the same thing, but PDFWriter has somwhat
limited graphics capability.
Probably for this reason, PDFWriter does not come with newer versions of
Acrobat.
For an Access report the limited graphics capability may not be a problem
though.
Note that PDFWriter is not included in the Acrobat 5 installation unless you
select it to be installed.

If you are interested I can give you some sample code for either printer
driver.

Ragnar
 
G

Guest

Thanks Ragnar!
I think I will try using the printer driver called WIN2PDF. If I could get
sample code to do that, that would be great. And would I place that code
right after I open the report?
 
R

Ragnar Midtskogen

OK, I will dig out the code tomorrow.

Ragnar

klkropf said:
Thanks Ragnar!
I think I will try using the printer driver called WIN2PDF. If I could
get
sample code to do that, that would be great. And would I place that code
right after I open the report?
 
R

Ragnar Midtskogen

Hi,

You will need to give me your Email address so I can mail you the file with
the code.
If you don't wnat to post it you can Email me at ragnarm(At)optonline.net

Ragnar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top