Error 429 in VBA with new version 2.0 or 2.0.1

Hy,

with the new version 2.0 or 2.0.1,
we are a problem when we want to create a new instance in VBA

Set PDFjob = CreateObject("PDFCreator.clsPDFCreator")
return error 429 - ActiveX Component Can't Create Object

Can you tell us why ?

Cordially

I am tasked with supporting some legacy applications in VB6.  One of these applications uses PDFCreator from pdfForge.  Sadly, the latest version of PDFCreator, which I would like to use does not appear to play well with VB6.  Before PDFCreator 2.0, I had previously got code to work by adding a reference to the project to PDFCreator.exe.  I could then instantiate a PDFCreator object thusly->
 Set pdfjob = New clsPDFCreator
                   or in older parts of the codebase I see…
 Set pdfjob = New PDFCreator.clsPDFCreator
Neither of these work any longer with PDFCreator 2.0, I either get an unknown user defined type or an error 429 at runtime.

They now ship a type library which I can set a reference to, but if I do that, I get “unknown user defined type”.  If I try to reference PDFCreator.exe the VB6 IDE just throws up immediately and says it cannot do it.  In previous versions of PDFCreator they did ship with some COM examples that worked fine, but the new COM example is only in .JS and references PDFCreatorBeta.PDFCreator(which incidentally did not work either)

Has anyone gotten PDFCreator 2.0 to work with VB6 and if so how?  VB6 code example please.

thanks,
~aw

Hello,


sorry for the late response.

@BrianM45: You are using the wrong ProgId for the new COM interface.

It has to be: Set PDFjob = CreateObject(“PDFCreatorBeta.JobQueue”) 

For further information please have a look at the new PDFCreator manual under the chapter COM Interface.

I did some very small scripts in VBA and VBS just to see if everything works and indeed it does. (I am working on Win7 64bit, but tried it even out with 32bit) 

this is a late binding example though…my code is doing early binding