Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

hencovanee
Not applicable

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
morris70
Not applicable

Re: Supress "Open document" Bullzip PDF printer

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.

3 Replies
morris70
Not applicable

Re: Supress "Open document" Bullzip PDF printer

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.

morris70
Not applicable

Re: Supress "Open document" Bullzip PDF printer

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.

hencovanee
Not applicable

Re: Supress "Open document" Bullzip PDF printer

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