# Question about printing from Vision

**URL:** <https://forum.inductiveautomation.com/t/question-about-printing-from-vision/104240>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [March 26, 2025, 2:33pm UTC](https://forum.inductiveautomation.com/t/question-about-printing-from-vision/104240 "2025-03-26T14:33:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sharan](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@sharan](https://forum.inductiveautomation.com/u/sharan)\
**Post date:** [March 26, 2025, 2:33pm UTC](https://forum.inductiveautomation.com/t/question-about-printing-from-vision/104240/1 "2025-03-26T14:33:26Z")

</div>

I am currenlty using creatprintJOb method in vision and able to print first or current page of print viewer to a printer, is there a way to print all pages ?Tried PrintAllPages(), i suppose ignition doesnt support print all page script

---

<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:** [March 26, 2025, 2:36pm UTC](https://forum.inductiveautomation.com/t/question-about-printing-from-vision/104240/2 "2025-03-26T14:36:47Z")

</div>

> [@sharan](#):
>
> print viewer

Do you mean the PDF viewer, the Report Viewer, or some other component?

Also, don't @ tag people explicitly, especially folks who aren't IA employees. Just post, and see if anyone helps you.

---

<div class="post-metadata">

**Author:** ![sharan](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@sharan](https://forum.inductiveautomation.com/u/sharan)\
**Post date:** [March 26, 2025, 3:28pm UTC](https://forum.inductiveautomation.com/t/question-about-printing-from-vision/104240/3 "2025-03-26T15:28:39Z")

</div>

This is my script :  
job = system.print.createPrintJob(event.source.parent.getComponent("P2L"))  
job.setShowPrintDialog(0)  
job.setPageHeight(15)  
job.setPageWidth(10)  
job.setMargins(.0)  
job.setOrientation(1)  
job.print()

#Its a report viewer component "P2L"  
#When i run this script, i get only the first page of report viewer printed i do have 7 pages and want to print all pages.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [March 26, 2025, 3:40pm UTC](https://forum.inductiveautomation.com/t/question-about-printing-from-vision/104240/4 "2025-03-26T15:40:20Z")

</div>

_system.print.createPrintJob()_ makes a print job of the Report Viewer component, not the report itself.

The Report Viewer has a built-in [print method](https://www.docs.inductiveautomation.com/docs/8.1/appendix/components/vision-components/reporting-components/report-viewer/report-viewer-scripting#printprintername-showdialog).

Example: assuming you're printing to the default printer, and no dialog:

```python
job = event.source.parent.getComponent("P2L")
job.print(None, False)

```

---

<div class="post-metadata">

**Author:** ![sharan](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@sharan](https://forum.inductiveautomation.com/u/sharan)\
**Post date:** [March 27, 2025, 10:47am UTC](https://forum.inductiveautomation.com/t/question-about-printing-from-vision/104240/5 "2025-03-27T10:47:30Z")

</div>

event this scrpt pasted in report viewer scripting gives only first page print out.  
I have added this script on mouse click on report viewer and also in reportGenerated extension method

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [March 27, 2025, 12:15pm UTC](https://forum.inductiveautomation.com/t/question-about-printing-from-vision/104240/6 "2025-03-27T12:15:01Z")

</div>

Does right-clicking on the report viewer and selecting 'Print' give the desired output?

---

<div class="post-metadata">

**Author:** ![sharan](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@sharan](https://forum.inductiveautomation.com/u/sharan)\
**Post date:** [April 7, 2025, 1:29pm UTC](https://forum.inductiveautomation.com/t/question-about-printing-from-vision/104240/7 "2025-04-07T13:29:58Z")

</div>

I added a for loop and changing the current page( from 1 to 8) everyloop and i am able to print all pages.
