3 Replies Latest reply: Jan 8, 2014 10:09 AM by Henco van Ee RSS

    Supress "Open document" Bullzip PDF printer

    Henco van Ee

      Hi all,

       

      I use the script below to print a PDF report and write it to a specific directory.

      Although I checked "ShowPDF", "no", it stills asks me if I want to open the generated document. This message keeps waiting and stucks the printing of the PDF document. I want the message to be supressed, so this process can run fully automaticly.

       

      Do you have any advice for me?

      Thanks in advance.

       

      Kind regards,

      Henco

       

      FUNCTION MyPrintPDFWithBullZip (pdfOutputFile)

       

        Set obj_printer_util = CreateObject("Bullzip.PDFUtil")

        printername = obj_printer_util.defaultprintername

       

        set obj = CreateObject("Bullzip.PdfSettings")

        obj.printername = obj_printer_util.defaultprintername

        obj.SetValue "Output" , pdfOutputFile

        obj.SetValue "ConfirmOverwrite", "no"

        obj.SetValue "ShowSaveAS", "never"

        obj.SetValue "ShowSettings", "never"

        obj.SetValue "ShowPDF", "no"

        obj.SetValue "RememberLastFileName", "no"

        obj.SetValue "RememberLastFolderName", "no"

        obj.SetValue "ShowProgressFinished", "no"

        obj.SetValue "ShowProgress", "no"

        obj.WriteSettings True

       

      END FUNCTION