Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - COMException problem - what am I missing???
  FAQ FAQ  Forum Search   Register Register  Login Login

COMException problem - what am I missing???

 Post Reply Post Reply
Author
Message
peterlen View Drop Down
Beginner
Beginner


Joined: 13 Sep 11
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote peterlen Quote  Post ReplyReply Direct Link To This Post Topic: COMException problem - what am I missing???
    Posted: 13 Sep 11 at 6:55PM
Hello,
 
I have started to look at the Quick PDF Lite (v7.25).  I wrote a test app for creating a PDF with text using Visual Studio 2008 (C#).  Initially, I could not load the QuickPDFLite0725.dll as a Resource.  In the Getting Started document I saw that I needed to run the following (for registering the ActiveX DLL):

regsvr32 "C:\Program Files\Quick PDF Library\Lite\QuickPDFLite0725.dll"

After I did this, I could load the DLL as a resource.  I was then able to use the API to create a PDF fil with text.  As a test, I loaded my test app's files (the executable, QuickPDF DLL, etc) to another Windows XP machine to try to run it.  When I tried to run it, I got the following error:
 
System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {......} failed due to the following error: 80040154
 
I am not sure this is because I did not register the ActiveX DLL or not but if so, that makes me wonder how an application using the API can be distributed without every customer machine running the regsvr32 command.
 
Each of the two machines are Windows XP with Visual Studio 2008.  Am I missing a fundamental understanding of how the API needs to be used?
 
Thanks - Peter
Back to Top
Wheeley View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 Oct 05
Location: United States
Status: Offline
Points: 146
Post Options Post Options   Thanks (0) Thanks(0)   Quote Wheeley Quote  Post ReplyReply Direct Link To This Post Posted: 13 Sep 11 at 10:42PM
An ActiveX must be registered on every machine that tries to use it. This is known behavior in regards to Window's ActiveX. And no you are not missing anything on how the api is used. But remember, the version you are using is free and to use it, it comes with restrictions like most free software. To get what you want, you need to buy a license and then use the DLL version. Then you won't have to register any ActiveX. And for the power of this library, a license is cheap.

Wheeley

Back to Top
peterlen View Drop Down
Beginner
Beginner


Joined: 13 Sep 11
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote peterlen Quote  Post ReplyReply Direct Link To This Post Posted: 14 Sep 11 at 12:57AM
Wheeley - Okay, that makes sense.  At least I know the situation now. Thanks for your help!!
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 14 Sep 11 at 8:34AM
It also helps to register the ActiveX using an Administrator account to prevent similar errors.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store