Specify the Report to print

Hi Ignition community,
today i’ve one questions…
Can i specify the report to print? And how?
I use this code in a button:

report = event.source.parent.getComponent("Report Viewer")

Set the .reportPath property of your report viewer. See the Report Viewer documentation. Consider taking the free Reporting in Ignition Course from Inductive University.

Can i Path more report at same time?

No. The viewer can only display one report at a time, and it’s print function only prints that one. If you want to run and print multiple reports without looking at them, consider using system.report.* scripting to generate them instead.