Here's an example that works with Access 2000, your mileage may vary. Using
the Acrobat Reader ActiveX plugin (5.0.5.2001091000), the following code can
be used to show a PDF in the control:
<snip>
' make sure the Acrobat Control for ActiveX reference is checked
' the OCX is at \Adobe\Acrobat 5.0\Reader\ActiveX\pdf.ocx
Dim Return as Boolean
Dim PDFPath as String
' fully specified path to the PDF document
PDFPath = "C:\target.pdf"
' assuming the Acrobat ActiveX control is named "Adobe" on the form
Return = Adobe.LoadFile(PDFPath)
<snip>
I use the LoadFile function instead of the method Adobe recommends on their
website (specifying the SRC property) as I've found that if you try to load
more than one PDF without closing and re-opening the form, it won't load
anything beyond the first PDF. Using LoadFile(), you can load as many PDFs
as you want without any problem.
The Adobe support page is at http://www.adobe.com/support/techdocs/165f2.htm
HTH
Adam
Quote:
> Hi,
> Can Access 97 open and read a PDF file?
> Thanks.