"SkipPrintDialog" property missing


#1

Hi.
I use COM Interface with Visual FoxPro for save reports into files (pdf, jpg, png, tiff).
I have some problems setting up the job in COM Interface.
My code is like this:

oPDF=CreateObject([PDFCreator.JobQueue])
oPDF.Initialize()
oPDF.WaitForJob(10)

  • Here I set the printer to pdfcreator and launch the command to print the report to the printer
    oJob=oPDF.NextJob
    oJob.SetProfileByGuid(this._SaveAs) && _SaveAs is a property that can be set as "DefaultGuid", "PdfaGuid", etc, described in help file
    oJob.SetProfileSetting([OpenViewer],Iif(mes=6,[true],[false]))
    oJob.SetProfileSetting([ShowOnlyErrorNotifications],[true])
    oJob.SetProfileSetting([ShowAllNotifications],[false])
    oJob.SetProfileSetting([ShowProgress],[false])
    oJob.SetProfileSetting([ShowQuickActions],[false])
    oJob.SetProfileSetting([SkipPrintDialog],[true]) && Here I take the exception error as this property does not exists...
    oJob.ConvertTo(lcFile)
    oPDF.ReleaseCom()

I use 3.2.2 build 13517 version of PDF Creator.
How do I skip the "Save" dialog box in COM Interface?!

Thank you!


#2

Hi,

the COM workflow doesn't have a a print dialog in the first place (it always uses autosave), so it can't get skipped. This must have been overlooked while creating the documentation, sorry for the trouble.

Best regards

Robin


#3

Hi Robin!

If it has not a interface, why when oJob.ConvertTo(FullFilePath) it opens the PDFCreator Save dialog box?

Edited: It's working fine... I commented that line (with "SkipPrintDialog" property) and seems to work fine. The save dialog does not show... I don't know why it has showing up earlier! I have to make more tests...

Regards,
Vali