Hi !
We decide to implement the new automation interface of the PDFCreator V2. We had already implemented the formal version in our system.
I use the small script that you can find here under to understand and test your new interface. I tested this script within Excel, with cscript.exe in an .vbs file and in our application. This script work fine with Excel and cscript.exe but not in our application.
I understand that there is an uncompatibility between our 2 systems but I have no problem to start any other application with ActiveX interface with our system.
The script start wel and stop on the line “oPDFjq.Initialize” and just hang. If I try “oPDFjq.Count” before the “initialize” then i receive a logical error (“object reference not set to an instance of an object”) telling me that I’m well connected to the interface.
I test the trace tool on your application but it stays empty during automation use.
Do not hesitate to ask questions if needed. Thanks for your help.
Axl
Dim oPDFc, oPDFjq
Dim iJobCount
Set oPDFjq = CreateObject(“PDFCreatorBeta.JobQueue”)
Msgbox “Objet <” & TypeName(oPDFjq) & “> Created”, vbInformation
Set oPDFc = CreateObject(“PDFCreatorBeta.PDFCreator”)
Msgbox “Objet <” & TypeName(oPDFc) & “> Created”, vbInformation
If Not oPDFc.IsInstanceRunning() Then
oPDFjq.Initialize
Msgbox “PDFCreator started.”, vbInformation
iJobCount = oPDFjq.Count
If iJobCount > 0 Then
Msgbox “There is " & cstr(iJobCount) & " jobs in the PDF Queue !”, vbInformation
Else
Msgbox “There is no job in the PDF Queue !”, vbInformation
End If
oPDFjq.ReleaseCom
Msgbox “PDFCreator ended.”, vbInformation
Else
Msgbox “Instance not running !”, vbexclamation
End If