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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
pkelly
Specialist
Specialist

Report Editor - Open Print Dialog from Code

We do not use the standard method of IE to give users access to QlikView Reports but a KioskBrowser application - various reasons for this - which means that the std toolbar doesn't appear.

This means that we have to create buttons on the report which mirror the toolbar - for example Print Sheet.

Starting to look at the Report Editor and have compiled a two page report.

The problem I have is giving our users access to print the report - a prerequisite is that the print dialog must appear so that they can change their default settings to be colour.

When printing a sheet I know I can force the print dialog window open using the following command...

ActiveDocument.ActiveSheet.DialogPrint

I also know that I can print a specific report off that goes direct to the printer using the following command...

ActiveDocument.PrintReport "RP01"

Suppose I am looking for a combination of the two really...

I have tried adding DialogPrint both before and after PrintReport with no success..

I found the following which works great when I am logged into the QlikView Qpplication but not via the KioskBrowser or by using Internet Explorer.

ActiveDocument.DialogReports

Any ideas or help greatly appreciated...

4 Replies
Anonymous
Not applicable

According to API guide, PrintReport has optional parameter "ShowPrinterDlg". Looks like what you need.

Regards,
Michael

pkelly
Specialist
Specialist
Author

Thanks Micheal

I am still getting to grips with the API guide and have only been using the "Automation Examples" tab but can now see this on the "Automation Members" tab.

Wonder if I could impose further and ask what the proper syntax for this for setting "ShowPrinterDlg"...

To go straight to the printer it is...

ActiveDocument.PrintReport "RP01"

Thanks for your help so far...

Anonymous
Not applicable

Try this:
ActiveDocument.PrintReport "RP01" , , true



pkelly
Specialist
Specialist
Author

Michael - works perfectly...

Now I know I need to look at the other tab and understand the syntax...

Thanks for your help...

Regards

Paul