pdfcreator hangs up

Author: mps59@orange.fr (mpservices)

Hello 
I'm using the pdfcreator com using the signature  CLSPDFCREATOR
start job,wait,stop job
wait code below: (standard one) 

============================================================== vt_start = $clock repeat     activate "CLSPDFCREATOR".get_ccountofprintjobs(vn_count)     if ($status < 0)         call pdf_error("get_ccountofprintjobs = <%%$status%%%>", $procerrorcontext)         exit -3   endif until (vn_count > 0) repeat   activate "CLSPDFCREATOR".get_ccountofprintjobs(vn_count)   if ($status < 0)     call pdf_error("get_ccountofprintjobs = <%%$status%%%>", $procerrorcontext)     exit -3   endif until (vn_count = 0) exit 0 ===================================================

 Sometimes the process "wait"  hangs ( and the pdfcreator monitor is displayed in the taskbar, ) so the first loop runs forever
once I've got this problem, even after killing the pdfcreator process, running any pdfcreator generation has the same effect, 
 need to close the user session to make it work again
Any ideas?
Best regards
Dominique

3 Comments

  1. Hello Dominique, I did a quick search and found the BLOG Creating PDF Documents with PDF Creator that might be of help. It seems that it is recommended to stop the Printer (e.g. in VB 'pdfCreator.cPrinterStop = false;') before running the first loop (ccountofprintjobs = 0) and enable it again (e.g. in VB 'pdfCreator.cPrinterStop = true;') before processing the Print Jobs on the Queue. I tried to test this here, but it seems that you are using an older version of PDFCreator. The version I have installed on my machine is 2.2 and it provides different COM objects. Hope this helps. Regards, Daniel


    Author: diseli (daniel.iseli@uniface.com)
  2. Daniel Thanks for the answer, but It is something I took over, I'm not very familiar with com objects, so a few questions:   1) Im using the pdfcreator 1.7,  Once I've installed the 2.2, how do I update the signature form   2) once this done, do I have to migrate all my customers to 2.2 or is there a possibility to have the 2 versions and migrate smoothly   Best regards Dominique


    Author: mpservices (mps59@orange.fr)
  3. mpservices said Daniel Thanks for the answer, but It is something I took over, I'm not very familiar with com objects, so a few questions:  

     You are welcome.

    mpservices said 1) Im using the pdfcreator 1.7,  Once I've installed the 2.2, how do I update the signature form

    You can import the type library of the newer PDFCreator version using the following idf command line:

    /sti /mwr=com "C:/Program Files/PDFCreator/PDFCreator.tlb"

    Please note that PDFCreator might be installed in a different location on your system. But the type library name (PDFCreator.tlb) should be the same. And it might be an idea to import the new PDFCreator signatures first into a new repository. I don't think that the old and new COM object name overlap, but you never know.

    mpservices said 2) once this done, do I have to migrate all my customers to 2.2 or is there a possibility to have the 2 versions and migrate smoothly

    If the COM signature names for both versions are different then you probably could  use both sets of signature alongside. But you probably need two different routines that interface with the different versions. More info about the latest PDFCreator COM interface can be found here.

    mpservices said Best regards Dominique

    Hope this helps. Best regards, Daniel


    Author: diseli (daniel.iseli@uniface.com)