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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Passing variables to PDF-XChange 3.0 printer

Hi,

I have this macro to print reports to the pdf printer (PDF-XChange 3.0)

The printer preferences has a lot op options there like quality of pictures, file name, paper size, etc. You can also put this preferences into profile. Very userfull.

Now how can I set my variables when printing through a vbs macro. Or select the right profile?

This is my command line now, but it needs to be extended with variables or profile:

ActiveDocument.PrintReport oReport, "PDF-XChange 3.0",false



Thanks,

Johan Vermeulen

K3 Business Solutions.

2 Replies
eburonian
Contributor
Contributor

Hi Johan,

can I see that macro please ?

Regards,

Not applicable
Author

Hi,

There is a lot of code, but that's more about getting the report, getting variables from tables etc. This question is about the call to print the report, usting the pdf printer



function printReportPDF(oReport, pdfOutputFile)
ActiveDocument.PrintReport oReport, "PDF-XChange 3.0",false
end function

So the question is: how can I pass variables to the pdf printer (other then 'oReport').

I've tried changing the registry settings of the printer through code, buy you can only change some parameters, not the output directory.

Would be great if you know something.

Thanks,

Johan.