Can not create object Acroexch

I am getting an error that Access "Active X control can not create object."   I registered the adobe controls and can print from the acropdf object.  I want an additional button to allow user to view the PDF.  Is there a seperate dll I need to register?
Private Sub Command250_Click()
Dim gApp As Acrobat.CAcroApp
Dim gPDDoc As Acrobat.CAcroPDDoc
Dim avAcr As Acrobat.CAcroAVDoc
Set gApp = CreateObject("AcroExch.App")
Set gPDDoc = CreateObject("AcroExch.PDDoc")
Set avAcr = CreateObject("AcroExch.AVDoc")
End Sub

Open in new window

Who is Participating?
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
That depends on what you're doing ... if all you want to do is View the PDF in the associated Adobe Reader, just use the Shell method:

Shell "Path to your PDF file", vbNormalFocus

Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
When you say you "registered the adobe controls", did you use the full Adobe package and install it? Or did you follow some other specific setup instructions? Items like Adobe are quite dependent on other controls and libraries, and if you simply copied files from your machine to another and registered them you almost certainly won't be able to use them (and may not have the necessary licensing to do so either).
TimothyPowellAuthor Commented:
I installed the free Adobe reader on my machine.  Does this require that I purchase the standard or professional version of the program?
TimothyPowellAuthor Commented:
Thank you very very much.  I am encouraging my wife to have more children and name them after you!
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
I think that's a GREAT idea! Good luck with your projects.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.