# Print report is slow

**URL:** <https://forum.inductiveautomation.com/t/print-report-is-slow/2973>\
**Category:** Archived Topics\
**Created:** [May 26, 2011, 10:55pm UTC](https://forum.inductiveautomation.com/t/print-report-is-slow/2973 "2011-05-26T22:55:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [May 26, 2011, 10:55pm UTC](https://forum.inductiveautomation.com/t/print-report-is-slow/2973/1 "2011-05-26T22:55:53Z")

</div>

I have found that when printing from FPMI there is sometimes a delay for the print dialog box to appear. Usually the slowest time is the first time the user prints or after the user has not clicked print in a while.

The most resend screen I have received the complaint on is where I have a report and a print button with this code

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

is there anything I can do to prevent the lagging print dialog box?

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [May 27, 2011, 9:56am UTC](https://forum.inductiveautomation.com/t/print-report-is-slow/2973/2 "2011-05-27T09:56:35Z")

</div>

Sure, to print to the default printer and don’t show the dialog box do the following:`event.source.parent.getComponent('Report Viewer').print(None, 0)`If you want to use a specific printer change the first argument from None to the printer name.

---

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [May 27, 2011, 3:13pm UTC](https://forum.inductiveautomation.com/t/print-report-is-slow/2973/3 "2011-05-27T15:13:22Z")

</div>

The report can be printed from any number of computers. There would not be just one named printer that could be used. The user still needs the option to change their printer. Why would the print dialog box take so long to appear when first called?

---

<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:** [July 21, 2011, 10:34pm UTC](https://forum.inductiveautomation.com/t/print-report-is-slow/2973/4 "2011-07-21T22:34:46Z")

</div>

There’s probably nothing you can do to alter this time, as it’s in Java’s domain to show that box.

I’d look for correlations between Java version, Windows version, and installed printers to try and figure out what piece is causing the delay. Maybe it’s a networked printer that is taking a long time for Java to query its printing capabilities?
