# Printing saved report from button

**URL:** <https://forum.inductiveautomation.com/t/printing-saved-report-from-button/81941>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [November 15, 2023, 5:52pm UTC](https://forum.inductiveautomation.com/t/printing-saved-report-from-button/81941 "2023-11-15T17:52:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carson\_Hunter](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@Carson\_Hunter](https://forum.inductiveautomation.com/u/Carson_Hunter)\
**Post date:** [November 15, 2023, 5:52pm UTC](https://forum.inductiveautomation.com/t/printing-saved-report-from-button/81941/1 "2023-11-15T17:52:29Z")

</div>

Hello! I am trying to get a button to print out a saved report. Unfortunately, what this prints out is a bunch of blank boxes.

```auto
path = system.file.openFile('pdf', "C:\Users\chunter\Desktop\Ignition Reports")
if path != None:
	bytes = system.file.readFileAsBytes(path)
	event.source.parent.getComponent('PDF Viewer').loadPDFBytes(bytes, "Name")
	job = event.source.parent.getComponent('PDF Viewer')
	job.print()

```

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/8/e8b1dbb631f3beab2ec20bd070e30e8308300bf8.png)

I am very new to Ignition so any and all advice would be much appreciated!

---

<div class="post-metadata">

**Author:** ![MTekin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mtekin/32/50257_2.png) [@MTekin](https://forum.inductiveautomation.com/u/MTekin)\
**Post date:** [November 22, 2023, 6:47pm UTC](https://forum.inductiveautomation.com/t/printing-saved-report-from-button/81941/2 "2023-11-22T18:47:47Z")

</div>

Hi @Carson_Hunter,

I was able to see the same behavior when using the same script. In this case, I believe it would be best to submit a ticket with us for a more thorough investigation.

[https://support.inductiveautomation.com/hc/en-us](https://support.inductiveautomation.com/hc/en-us)

---

<div class="post-metadata">

**Author:** ![Carson\_Hunter](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@Carson\_Hunter](https://forum.inductiveautomation.com/u/Carson_Hunter)\
**Post date:** [November 29, 2023, 6:09pm UTC](https://forum.inductiveautomation.com/t/printing-saved-report-from-button/81941/3 "2023-11-29T18:09:09Z")

</div>

Will do!

---

<div class="post-metadata">

**Author:** ![Carson\_Hunter](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@Carson\_Hunter](https://forum.inductiveautomation.com/u/Carson_Hunter)\
**Post date:** [January 3, 2024, 1:18pm UTC](https://forum.inductiveautomation.com/t/printing-saved-report-from-button/81941/4 "2024-01-03T13:18:01Z")

</div>

Unfortunately this is a know issue and the solution was to not use this method 🙂 no shortcuts this time!
