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!
![]() |
COMException problem - what am I missing??? |
Post Reply
|
| Author | |
peterlen
Beginner
Joined: 13 Sep 11 Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Wheeley
Senior Member
Joined: 30 Oct 05 Location: United States Status: Offline Points: 146 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
peterlen
Beginner
Joined: 13 Sep 11 Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 Sep 11 at 12:57AM |
|
Wheeley - Okay, that makes sense. At least I know the situation now. Thanks for your help!!
|
|
![]() |
|
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 Sep 11 at 8:34AM |
|
It also helps to register the ActiveX using an Administrator account to prevent similar errors.
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store