Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"AcroExch" Not found. Please Help!!

Status
Not open for further replies.

amutinu

Programmer
Oct 19, 2001
50
0
0
US
Hello All,
I am trying a sample from for inserting pages from one file to another and somehow i get a "Cannot create component object" error at the following line of code. I am new to pdf and would appreciate your help.

Please let me know,

Dim PDDocSource As Object
Dim PDDocTarget As Object

Set PDDocSource = CreateObject("AcroExch.PDDoc") -Fails here
Set PDDocTarget = CreateObject("AcroExch.PDDoc")
 
Actually, Acrobat does support OLE. It just is very confusing and clumsy. I had this same problem when I started poking into adding Acrobat into my programs. The problem is that you are defining the variable as an object. Normally, this would be fine, but, like I said Acrobat is clumsy. You need to define the variable as a CAcroPDDoc.

ex. Dim PDDocSource As CAcroPDDoc

That got it to work for me.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top