• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 531
  • Last Modified:

Displaying PDF-file from a report in Access 2003

I am using MS Access 2003 on Windows Vista
I am trying to open a PDF file from a Report page, using the AcroPDF.dll (inserted the control on the report page, the control's name is AcroPDF4 in my example)

I have this code inside the Report_Open event:
Dim strFilePath As String
strFilePath = "c:\myfile.pdf"
Me.AcroPDF4.Object.src = strFilePath

When I open the report I get the run time error 2725 OLE server isn't registered
There is automatically made a reference to the "Adobe Acrobat 8.0 Browser Control Library 1.0" (I have Adobe Reader 8.0 installed)

If I do exactly the same from a Form (not Report), things go quit well (the PDF is displayed)!!!
Anybody who knows what the problem is???
  • 2
1 Solution
Hi Joar,

Is this link any help?


JoarAuthor Commented:
I am afraid not, in the same program it functions for a form but not for a report, so the approproate dll's should be registered.
It seems to me that the MS Access Report is not able to use the  AcroPDF.dll???

Meantime I have gone for another solution (Adobe SDK)
Thank you anyway!
No problem and good luck!

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now