Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Merge pdf

Posted on 2007-11-29
9
Medium Priority
?
316 Views
Last Modified: 2010-04-21
i am trying to use the code found at http://www.experts-exchange.com/Web_Development/Document_Imaging/Adobe_Acrobat/Q_21000173.html.the problem i am having is at the createobject line i have set the references to Adobe Acrobat 8.0 Type Library
Dim AcroExchApp As Acrobat.CAcroApp
        Dim AcroExchPDDoc As Acrobat.CAcroPDDoc

        Dim AcroExchInsertPDDoc As Acrobat.CAcroPDDoc
        Dim strFileName As String, strPath As String
        Dim iNumberOfPagesToInsert As Integer
        Dim iLastPage As Integer

        AcroExchApp = CreateObject("AcroExch.App")
        AcroExchPDDoc = CreateObject("AcroExch.PDDoc")

the error message i keep getting is
ActiveX component can't create object
i need help
0
Comment
Question by:wwstudioinc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 16

Accepted Solution

by:
Rick_Rickards earned 2000 total points
ID: 20375907
Just a guess but sometimes declaring the object variable specifically causes issues and by using the more generic "object" declaration will get things working.  Sample code below...

Note: In this case I changed all 3 to object but it may be that only 1 or 2 need be changed assuming this turns out to be the fix.
        Dim AcroExchApp As Object
        Dim AcroExchPDDoc As Object
 
        Dim AcroExchInsertPDDoc As Object
        Dim strFileName As String, strPath As String
        Dim iNumberOfPagesToInsert As Integer
        Dim iLastPage As Integer
 
        AcroExchApp = CreateObject("AcroExch.App")
        AcroExchPDDoc = CreateObject("AcroExch.PDDoc")

Open in new window

0
 

Author Comment

by:wwstudioinc
ID: 20376228
rick i tried it i get the same error message
0
 
LVL 16

Expert Comment

by:Rick_Rickards
ID: 20376329
On which line does it crash?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:wwstudioinc
ID: 20376578
AcroExchApp = CreateObject("AcroExch.App")
0
 
LVL 16

Expert Comment

by:Rick_Rickards
ID: 20378183
Do you have Adobe Acrobat 6.0 version installed?  If so, is it the Read Only version or can is it a version that can read and write .pdf files?

It almost sounds as if the Acrobat Reader .dll hasn't couldn't be found within the registry, either because something went arry during the installation or because it was never installed.
0
 

Author Comment

by:wwstudioinc
ID: 20378287
i had a reference to Adobe Acrobat 8.0 Type Library on another computer and it still failed.i am going to locate the dll
0
 

Author Comment

by:wwstudioinc
ID: 20378685
any links to where i can obtain the dll
0
 
LVL 16

Expert Comment

by:Rick_Rickards
ID: 20378779
To the best of my knowledge versions of Adobe Acrobat 8.0 that come complete with the Type Library are purchased not downloaded for free.  While I'm not entirely sure I don't believe the reader which can be downloaded for free comes with the type library.  To be honest, however, I'm not 100% certain.  

If you can find the .dll and one is all you need and it is self registering it then you can get it to load the registry up with what it needs by going to DOS, change to the folder where the dll is located and then type....

RegSvr32 MyLib.dll

That said, I'd be reluctant to make any claims that simply finding the 1 dll you know you're missing would be the only thing required.  As I said before, it sounds as if the product is not installed and hence it can not be instantiated.
0
 

Author Closing Comment

by:wwstudioinc
ID: 31411737
Rick i found an old version of adodbe 5.0 i installed it and everything is fine i guess it had to do with the version that i had installed.thanjs
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

596 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