Confirm about operation completed

Dear friends,

I would like to use your GREAT PdfCreator to see/download Pdfs in a webpage. I use COM interface to create PDF file, but I have to set a 2 seconds wait before to download file because PdfCreator printer does not tell me when the PDF is ready:

 

m.PDFC  = CREATEOBJECT("PDFCreator.clsPDFCreator","pdfcreator")

m.PDFC.cStart("/NoProcessingAtStartup")

m.PDFC.cOption("UseAutosave") = 1

m.PDFC.cOption("UseAutosaveDirectory") = 1

m.PDFC.cOption("AutosaveFilename") = "test.pdf"

m.PDFC.cOption("AutosaveDirectory") = "c:\\temp\\"

m.PDFC.cClearCache

m.PDFC.cprinterstop=.F.

lcPDF="c:\\temp\\test.pdf"

 

... here I create PDF printing on PdfCreator printer...

... here wait 2 seconds...

Response.DownloadFile("c:\\temp\\test.pdf", "application/pdf", "PDFfile")

Please, is there any way to get from PdfCreator printer a confirm about operation completed? In this way I should not wait a generic (and unreliable) 2 seconds wait.

 

Thank you very much

 

Hello,

please have a look at the sample we provide in the PDFCreator install path under COM\\Windows Scripting Host\\VBScripts\\Convert2PDF.vbs

It uses the eReady event to get notified when the conversion is finished.

kind regards,
Philip