Quantcast
Channel: PDFCreator - pdfforge forums
Viewing all articles
Browse latest Browse all 2637

Error "Interface not registered" with imported type library from PDFCreator.COM.dll in Delphi ( PDFCreator 2.4 )

$
0
0

@Ico wrote:

Hi, I've always written Delphi code with PDFCreator versions <= 1.73 and now I'm discovering the new features of 2.X
To make the most of methods and properties exposed from COM object I decided to import as type library "PDFCreator_COM" ( I'm using PDFCreator v. 2.4 ).
This made a perfect PDFCreator_COM_TLB.pas with all types, objects and interfaces.
Now, for example, when I declare a var as IPrinters, I can see Delphi code completion that shows me all properties ( for example "Count" ) and methods ( for example "GetPrinterByIndex" ).
Project compiles without any problems but in runtime when I start using this I got the OleSysError with message "interface not registered", followed by ClassID ( which is, for IPrinters, {267F0F22-4C1B-4B36-AA67-D6F2EB9C2423} )
I tried registering "PDFCreator.COM.dll" with regsvr32, but it doesn't seem to be possibile.
Why interface doesn't seem to be registered? Should I register it? ( How? )
I see that if I use code without referencing to the type library and I declare simple Variants types then methods like CreateOLEObject('PDFCreator.PDFCreatorObj') or CreateOLEObject('PDFCreator.JobQueue') work without any problem ( but in this way I of course Delphi doesn't know anything about properties and methods of the var ), so I suppose that COM object is correctly installed.
My environment info: Windows 7 x64 \ Delphi XE4 \ PDFCreator 2.4
Thanks a lot.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 2637


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>