The Acrobat SDK has some sample code to do this (at least the v5.0 one
did, and I am sure v6.0 does as well)
http://partners.adobe.com/asn/acrobat/download.jsp
- Robert
On 23 Jun 2004 08:35:23 -0700,
gudia97@yahoo.com (gudia) wrote:
[color=blue]
>I want to Programatically generate Access reports in the pdf format
>using some tool and then email them to people in the same code. Right
>now I am trying to do this with pdf995 using VBA (emailing is a
>separate issue, which pdf995 does not addresses).
>
>I downloaded pdf995. It controls printing via pdf995.ini file. In the
>VBA code, I have DoCmd.OpenReport "Report2", acViewNormal. I am having
>the following problems right now.
>
>(a) I do not understand how the .ini file is used with printing.
>Specifically, when I issue the command DoCmd.OpenReport "Report2",
>acViewNormal
>what should I expect? Right now, all this command does is send the
>report to the printer, which this line of code would do, WITHOUT
>pdf995. In the e:\temp folder, pdf995 does not generate anything.
>
>(b) I want to avoid sending reports to the printer. How will I
>accomplish this?
>
>(c) No dialog boxes of any kind (Save as etc.)
>
>I have already looked at FAQs and Developers FAQs at pdf995 web site.
>Yes, there is a VB sample. But it does not address the problems I am
>having.
>
>I have looked at other postings. Immediately after the above command,
>people say to use CopyFile_TSB function (to copy the output generated
>by the execution of the DoCmd.OpenReport command to the filename you
>want). My problem is which command (could somebody give me an example)
>generates the pdf file using pdf995?
>
>Here is my pdf995.ini file.
>
>[Parameters]
>Output File=SAMEASDOCUMENT
>Output Folder=e:\temp
>Autolaunch=0
> [Debug]
>EndDocPort1=1
>EndDocPort2=1
>EndDocPort3=1
>
>Help appreciated.
>
>If somebody has a better method, please advise.
>
>Thanks[/color]