New Forum | Previous | Next | (P-PDF) Developers
Topic: VB to Acrobat Problems
Conf: (P-PDF) Developers, Msg: 136961
Date: 7/29/2005 12:12 AM
Here is the code (mostly copied from the "Programming..." manual into the VB):
Public Class Form1
Dim gApp As Acrobat.CAcroApp
Dim gPDDoc As Acrobat.CAcroPDDoc
Dim jso As Object
' Prewritten section: " Windows Form Designer generated code "
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
gApp = CreateObject("AcroExch.App")
gPDDoc = CreateObject("AcroExch.PDDoc")
If gPDDoc.Open("c:\my documents\adobe.pdf") Then
jso = gPDDoc.GetJSObject
I get the following error message:
An unhandled exception of type 'System.Exception' occurred in microsoft.visualbasic.dll
Additional information: Cannot create ActiveX component.
Is there some other reference that needs to be added (other that the Acrobat 7.0 Type Library) to make this go away, or is there a flaw in my code or how I pasted it in? I'm sure the code given is good - I suspect operator error :(
Any help would be appreciated..