# Help with on demand V7.8 reports

**URL:** <https://forum.inductiveautomation.com/t/help-with-on-demand-v7-8-reports/12010>\
**Category:** Ignition\
**Created:** [August 5, 2016, 3:25pm UTC](https://forum.inductiveautomation.com/t/help-with-on-demand-v7-8-reports/12010 "2016-08-05T15:25:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Curlyandshemp](https://avatars.discourse-cdn.com/v4/letter/c/bcef8e/32.png) [@Curlyandshemp](https://forum.inductiveautomation.com/u/Curlyandshemp)\
**Post date:** [August 5, 2016, 3:25pm UTC](https://forum.inductiveautomation.com/t/help-with-on-demand-v7-8-reports/12010/1 "2016-08-05T15:25:21Z")

</div>

I am using V7.8.2 and need help with the script function system.report.executeAndDistribute().

Customer wants to select query parameters for reports, then print to a PDF. I can create the PDF from help examples, just don’t know how to pass custom parameters to the report to reflect the selected query parameters

[attachment=0]2016-08-05 11\_19\_38-.png[/attachment]

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 5, 2016, 4:14pm UTC](https://forum.inductiveautomation.com/t/help-with-on-demand-v7-8-reports/12010/2 "2016-08-05T16:14:24Z")

</div>

Pass the report’s named parameters using their names in a Python dictionary, see this link for an example of the syntax you’d need:

[docs.inductiveautomation.com/di … cuteReport](https://docs.inductiveautomation.com/display/DOC78/system.report.executeReport)

---

<div class="post-metadata">

**Author:** ![Curlyandshemp](https://avatars.discourse-cdn.com/v4/letter/c/bcef8e/32.png) [@Curlyandshemp](https://forum.inductiveautomation.com/u/Curlyandshemp)\
**Post date:** [August 5, 2016, 4:22pm UTC](https://forum.inductiveautomation.com/t/help-with-on-demand-v7-8-reports/12010/3 "2016-08-05T16:22:18Z")

</div>

[quote=“PGriffith”]Pass the report’s named parameters using their names in a Python dictionary, see this link for an example of the syntax you’d need:

[docs.inductiveautomation.com/di … cuteReport](https://docs.inductiveautomation.com/display/DOC78/system.report.executeReport)[/quote]

Thanks,  
saw that , was hoping there would be an easier way.

What is missing from report viewer is the ability to print.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 5, 2016, 4:35pm UTC](https://forum.inductiveautomation.com/t/help-with-on-demand-v7-8-reports/12010/4 "2016-08-05T16:35:11Z")

</div>

Actually - the functionality is there, just not documented as well as it could be. If you right-click a report viewer component in Preview Mode, or while in a client, you can use the Print option in the dropdown.

You can call this from scripting with something like this (in an example button’s actionPerformed scripting hook):

```auto
system.gui.getSibling(event, 'Report Viewer').print()
```

---

<div class="post-metadata">

**Author:** ![Curlyandshemp](https://avatars.discourse-cdn.com/v4/letter/c/bcef8e/32.png) [@Curlyandshemp](https://forum.inductiveautomation.com/u/Curlyandshemp)\
**Post date:** [August 5, 2016, 5:34pm UTC](https://forum.inductiveautomation.com/t/help-with-on-demand-v7-8-reports/12010/5 "2016-08-05T17:34:18Z")

</div>

[quote=“PGriffith”]Actually - the functionality is there, just not documented as well as it could be. If you right-click a report viewer component in Preview Mode, or while in a client, you can use the Print option in the dropdown.

You can call this from scripting with something like this (in an example button’s actionPerformed scripting hook):

```auto
system.gui.getSibling(event, 'Report Viewer').print()
```

Perfect,

that is exactly what I was looking for, thanks
