Can not create object Acroexch

Posted on 2009-02-24
Last Modified: 2013-11-27
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

Question by:TimothyPowell
    LVL 84
    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).

    Author Comment

    I installed the free Adobe reader on my machine.  Does this require that I purchase the standard or professional version of the program?
    LVL 84

    Accepted Solution

    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


    Author Closing Comment

    Thank you very very much.  I am encouraging my wife to have more children and name them after you!
    LVL 84
    I think that's a GREAT idea! Good luck with your projects.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
    In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now