Logout Developer Knowledgebase Search Adobe Partners Main Adobe Solution Partner Finder Adobe Solution Partner Program Support Developer Knowledgebase Adobe Solution Partner Program Products & Technology Adobe
Developer Knowledgebase

Knowledgebase HomeAcrobat KB

Overview
Software Development Kits
Developer Knowledgebase
Support
Legal Notices
Feedback
Adobe Solution Partner Program
Join
Find a Solution Partner

Product
Acrobat
 
Version
4.05
 
Last Edited
07-Aug-2002
 
Document
50709

How To: Unable To Access Objects In Visual Basic

Summary
Reader does not support OLE. If you are developing in Acrobat, check that you are creating objects properly.

Issue
I wasn't able to use the objects in the PDF.tlb file despite them being visible in VB. When the program is compiled the error "Can't create Object" is displayed.
Solution
Unfortunately, Acrobat Reader does not support OLE automation, as stated in the Interapplication Communication Overview located in the Acrobat SDK. Therefore, your options are to upgrade to full version of Acrobat, where OLE is supported.
Web page containing links to the various Adobe Products.

If you are using Acrobat, the problem may relate to how the objects are created. Your code should be similar to:
Dim avdoc as Object, app as object, pddoc as Object
set app = CreateObject("AcroExch.App")
set avdoc = CreateObject("AcroExch.AVDoc")
avdoc.open "c:\test.pdf", "Temp Title"

if (avdoc.IsValid = True) Then
set pddoc = avdoc.GetPDDoc()
End If

back to top
Was this Knowledgebase document helpful? Yes  No
The articles in this knowledgebase are intended for use by software programmers currently using an Adobe SDK to extend or customize an Adobe product. These articles may be highly technical in nature.
If you have questions about an Adobe Product that are not related to development or an SDK product please visit: http://adobe.com/support/main.html
Copyright © Adobe Systems Incorporated. All rights reserved.
Terms of Use
Online Privacy Policy