Link to home
Start Free TrialLog in
Avatar of TimothyPowell
TimothyPowell

asked on

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")
gApp.Show
 
End Sub

Open in new window

Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

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).
Avatar of TimothyPowell
TimothyPowell

ASKER

I installed the free Adobe reader on my machine.  Does this require that I purchase the standard or professional version of the program?
ASKER CERTIFIED SOLUTION
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you very very much.  I am encouraging my wife to have more children and name them after you!
I think that's a GREAT idea! Good luck with your projects.