# Printing Reports using a touchscreen

**URL:** <https://forum.inductiveautomation.com/t/printing-reports-using-a-touchscreen/5831>\
**Category:** Ignition\
**Created:** [February 8, 2013, 1:01pm UTC](https://forum.inductiveautomation.com/t/printing-reports-using-a-touchscreen/5831 "2013-02-08T13:01:54Z")\
**Posts on this page:** 3\
**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:** [February 8, 2013, 1:01pm UTC](https://forum.inductiveautomation.com/t/printing-reports-using-a-touchscreen/5831/1 "2013-02-08T13:01:54Z")

</div>

I have an application where I need to print reports from the reporting module, but do not have a mouse to invoke a right click to bring up the print report choices.  
I created a button to do a screen dump through scripting , but that looks cheesey.  
Is there anyway to print just the report using a touch screen ?

---

<div class="post-metadata">

**Author:** ![James.Lorenz](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/james.lorenz/32/3290_2.png) [@James.Lorenz](https://forum.inductiveautomation.com/u/James.Lorenz)\
**Post date:** [February 8, 2013, 4:45pm UTC](https://forum.inductiveautomation.com/t/printing-reports-using-a-touchscreen/5831/2 "2013-02-08T16:45:59Z")

</div>

When you say screen dump, you mean you were using system.print.printToImage()? Try just calling print() on the component instance, and you can add that to a button:

```auto
event.source.parent.getComponent("Report Viewer").print()
```

For the print() function, you can also pass in a printer name or a boolean stating whether or not to show a dialog box.

[inductiveautomation.com/support/ … viewer.htm](http://inductiveautomation.com/support/usermanuals/ignition/reporting_components_reportviewer.htm)

---

<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:** [February 9, 2013, 7:31pm UTC](https://forum.inductiveautomation.com/t/printing-reports-using-a-touchscreen/5831/3 "2013-02-09T19:31:39Z")

</div>

[quote=“James.Lorenz”]When you say screen dump, you mean you were using system.print.printToImage()? Try just calling print() on the component instance, and you can add that to a button:

```auto
event.source.parent.getComponent("Report Viewer").print()
```

For the print() function, you can also pass in a printer name or a boolean stating whether or not to show a dialog box.

[inductiveautomation.com/support/ … viewer.htm](http://inductiveautomation.com/support/usermanuals/ignition/reporting_components_reportviewer.htm)[/quote]

Yes,  
thanks, that is what I was looking for. That whole section is not in the PDF manual or the manual that is imbedded with Ignition.  
There is an inconsistency as to which manuals are being displayed.
