Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
IMPORTANT: Upcoming LEF Database Maintenance, Oct. 3rd - SEE DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Creator II
Creator II

Supress "Open document" Bullzip PDF printer

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

1 Solution

Accepted Solutions
Highlighted
Specialist
Specialist

Hi,

Have you tried changing the settings on the actual pdf printer? I had the same problem with another pdf printer and in the end I went in to printer settings and turned that option off. Not sure how bullzip works but you should still be able to find it with your other printers. On the down side you will be turning this off for anything else that uses that pdf printer.

View solution in original post

3 Replies
Highlighted
Specialist
Specialist

Hi,

Have you tried changing the settings on the actual pdf printer? I had the same problem with another pdf printer and in the end I went in to printer settings and turned that option off. Not sure how bullzip works but you should still be able to find it with your other printers. On the down side you will be turning this off for anything else that uses that pdf printer.

View solution in original post

Highlighted
Specialist
Specialist

You could also just use the QlikView action to print the report (uncheck show print dialog) and then use a script to put it in the correct directory, rename or whatever you want to do.

Highlighted
Creator II
Creator II

Hi Nils,

Of course, that's the right answer.

I took a look a that, but didn't found anything.

After you did this suggestion I take a better look, and found it.

Thanks a lot.

Kind regards,

Henco