Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

8.5: Using alternate PDF Printer

Hey,

I was just wondering of anybody ever tried to use another pdfPrinter that the QlikTech one ? I'm not really satisfied with the results and the filesize is also way to big !

I am using an example file from this forum and I think the lines of VBScript responsible for selecting the pdf printer are the following:

function printReportPDF(oReport, pdfOutputFile)
Set WSHShell = CreateObject("WScript.Shell")
WSHShell.RegWrite "HKCU\Software\QlikViewPDF\OutputFile", pdfOutputFile, "REG_SZ"
WSHShell.RegWrite "HKCU\Software\QlikViewPDF\BypassSaveAs", "1", "REG_SZ"
'QV Print
ActiveDocument.PrintReport oReport, "QlikViewPDF", false
set WSHShell = nothing
end function

function activateSaveAs()
Set WSHShell = CreateObject("WScript.Shell")
WSHShell.RegWrite "HKCU\Software\QlikViewPDF\OutputFile", "", "REG_SZ"
WSHShell.RegWrite "HKCU\Software\QlikViewPDF\BypassSaveAs", "0", "REG_SZ"
set WSHShell = nothing
end function

Can Soe tell me how to amend those to use e.g. the PDF printer from adobe?

Thx in advance!

Cheers,

Flo

3 Replies
Anonymous
Not applicable
Author

Flo,
I can tell that the printer is defined in the line
Activedocument.PrintReport oReport, "QlikViewPDF", false.
So, you have to replace the "QlikViewPDF" with your printer name - see in your "Pinters and Faxes" what is the exact name.
I cannot tell what exactly should be to bypass SaveAs, but except somethjing similar.

Not applicable
Author

Hi

thanks for your answer. Actually I solved the problem with the Qlikview printer ... if you are satisfied with normal chart without any fancy color transitions then it does a pretty good job.

I guess that changing only the Name from qlikview to e.g. adobe, would work because you still have to tell the printer where to put the pdf ?

But anyways thx for the help

Anonymous
Not applicable
Author

I think the name change is not enough. For a different printer, there will be different places in the registry for file name and for bypass.
Most likely it will be very similar.