[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1909
  • Last Modified:

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

0
TimothyPowell
Asked:
TimothyPowell
  • 3
  • 2
1 Solution
 
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).
0
 
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?
0
 
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

0
 
TimothyPowellAuthor Commented:
Thank you very very much.  I am encouraging my wife to have more children and name them after you!
0
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
I think that's a GREAT idea! Good luck with your projects.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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