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!