These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

PDF Generation using VB

benmess
Registered: Oct 17 2007
Posts: 2

Can you generate a pdf document from an Access report using VB code?
 
I've tried using the PDFMaker object but I cannot find the corrcet syntax.
 
Is there help available on how to use the acrobat pdf DLL's, tbl's or ocx's that are provided with Professional 8.0?
 
Any hints in this direction would be greatly appreciated

My Product Information:
Acrobat Pro 8, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Yes, there are a couple of ways to do this. The easiest method is to use the ordinary VB print functions with the PDF Print driver. There is also a Macro button for PDF creation installed into Access by Acrobat Professional. There aught to be a way from VB to hit this button, but I don't know what it is.

The other method is to use the Acrobat IAC interface. You'll find documentation for it at:

[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]

Click on the "documentation" tab and scroll down to "Interapplicaion Communication".

Use this interface to load the access file into Acrobat. This will automatically convert it into a PDF. Then save it.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script