# Alarm Journal Printing

**URL:** <https://forum.inductiveautomation.com/t/alarm-journal-printing/19871>\
**Category:** Ignition\
**Created:** [September 27, 2018, 8:33pm UTC](https://forum.inductiveautomation.com/t/alarm-journal-printing/19871 "2018-09-27T20:33:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DSI600](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@DSI600](https://forum.inductiveautomation.com/u/DSI600)\
**Post date:** [September 27, 2018, 8:33pm UTC](https://forum.inductiveautomation.com/t/alarm-journal-printing/19871/1 "2018-09-27T20:33:37Z")

</div>

Looking for help on if anyone has a code snippet to print the alarm journal from what the operators select using the date range object.

Tried a few of the other ones I found on the forum but everything I find is from a while ago. Hoping there is an easier way.

---

<div class="post-metadata">

**Author:** ![DSI600](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@DSI600](https://forum.inductiveautomation.com/u/DSI600)\
**Post date:** [October 1, 2018, 3:42pm UTC](https://forum.inductiveautomation.com/t/alarm-journal-printing/19871/2 "2018-10-01T15:42:22Z")

</div>

Just an update.

I called into tech support to get this working and the best way to do this is through the Reporting Module (which I did not think of)

Super easy to do and use Print feature on a button.

Actually replaced the Alarm Journal graphic with this report as it is a lot nicer.

---

<div class="post-metadata">

**Author:** ![zxcslo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zxcslo/32/61610_2.png) [@zxcslo](https://forum.inductiveautomation.com/u/zxcslo)\
**Post date:** [October 1, 2018, 4:14pm UTC](https://forum.inductiveautomation.com/t/alarm-journal-printing/19871/3 "2018-10-01T16:14:12Z")

</div>

Care to share how exactly you do it?  
Think that many will benefit from this…👍

---

<div class="post-metadata">

**Author:** ![DSI600](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@DSI600](https://forum.inductiveautomation.com/u/DSI600)\
**Post date:** [October 1, 2018, 4:37pm UTC](https://forum.inductiveautomation.com/t/alarm-journal-printing/19871/4 "2018-10-01T16:37:40Z")

</div>

Create the report - Select Alarm\_Journal as a data source - Add Table Component to the report - I used EVENTTIME , Display Path, Ack’edBy and Current state as the 4 columns.

Created an Alarm History Screen in Vision - Put the Report Viewer Component on screen - Added a Date-Range component to screen tied the End Time and Start time to the report viewer component

Added a Button to the screen with the following on Action Performed.

report = event.source.parent.getComponent(“Report Viewer”)  
report.print()

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/51e8ffcefd6683afabf126734c025adce3865080.JPG)
