# Reporting Save Function

**URL:** <https://forum.inductiveautomation.com/t/reporting-save-function/809>\
**Category:** Archived Topics\
**Created:** [September 11, 2008, 6:46pm UTC](https://forum.inductiveautomation.com/t/reporting-save-function/809 "2008-09-11T18:46:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![f\_adamg](https://avatars.discourse-cdn.com/v4/letter/f/bb73d2/32.png) [@f\_adamg](https://forum.inductiveautomation.com/u/f_adamg)\
**Post date:** [September 11, 2008, 6:46pm UTC](https://forum.inductiveautomation.com/t/reporting-save-function/809/1 "2008-09-11T18:46:42Z")

</div>

There are some applications where users may not have access to mouse clicks (the right click in particular) and are using a touchscreen. For their ease I have added a button to the screen to allow them to print a report (instead of right clicking the report and selecting print).

`report = event.source.parent.getComponent('blah')
report.print()`  
My question is: I would like to do the same, but instead of a print button, I would like to have a ‘save’ button. Is there a function to call the save as a PDF instead of going through the right click and selecting ‘save as a PDF’?

`For example:
report = event.source.parent.getComponent('blah')
report.save()`

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [September 11, 2008, 7:01pm UTC](https://forum.inductiveautomation.com/t/reporting-save-function/809/2 "2008-09-11T19:01:41Z")

</div>

Sure, you could just do:

`report = event.source.parent.getComponent('blah')
report.saveAsPDF("report.pdf")`
