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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Version 8.5 - Button Object for Report Generation

Greetings everyone!

I need to link a report I created in an App to a button object, in order to print it (user's demand).

I'm aware that version 10 make it in the easiest way, but a new version of QV is out of question here...

Can any one help?

Thx in advance!

1 Solution

Accepted Solutions
stephencredmond
Partner - Specialist II
Partner - Specialist II

Fairly straightforward - you need to create a VBS macro - e.g.:

Sub PrintReport()

ActiveDocument.PrintReportEx "RP01"

End Sub

You can call the macro from a button.

Regards,

Stephen

View solution in original post

6 Replies
stephencredmond
Partner - Specialist II
Partner - Specialist II

Fairly straightforward - you need to create a VBS macro - e.g.:

Sub PrintReport()

ActiveDocument.PrintReportEx "RP01"

End Sub

You can call the macro from a button.

Regards,

Stephen

Not applicable
Author

Stephen, thank you for answering!

I did as you say, and when I click the button, the EDIT MODULE screen comes up... any other detail to make the button open the report print popup?

Thanx again!!!

Not applicable
Author

Just to clarify, I want the button to bring the PRINT popup, for the user to choose between printing it inpaper, or generating a PDF printer. Is it possible?

Not applicable
Author

READ "generating PDF Printer" as "generating PDF file".

stephencredmond
Partner - Specialist II
Partner - Specialist II

Try ActiveDocument.PrintReport "RP01", "", True - should show the dialog. Note this will only work for "thick" clients. Web clients will just get the report generated as PDF and then opened on their local machine.

Stephen

Not applicable
Author

Stephen, it worked perfectly!!!

Thank you so much for your attention!!!