# Saving Reports to Excel Crashes Client

**URL:** <https://forum.inductiveautomation.com/t/saving-reports-to-excel-crashes-client/34853>\
**Category:** Ignition\
**Created:** [May 18, 2020, 6:21pm UTC](https://forum.inductiveautomation.com/t/saving-reports-to-excel-crashes-client/34853 "2020-05-18T18:21:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fcarrion](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/fcarrion/32/24407_2.png) [@fcarrion](https://forum.inductiveautomation.com/u/fcarrion)\
**Post date:** [May 18, 2020, 6:21pm UTC](https://forum.inductiveautomation.com/t/saving-reports-to-excel-crashes-client/34853/1 "2020-05-18T18:21:10Z")

</div>

Hello, I am trying to save to Excel a very long report that the customer needs data to be in one spreadsheet in Excel. I declared the page height really high as some other posts suggest, but at the moment of saving the excel the client takes about 15 minutes to save the file (and it is a 235Kb xls file). PDF works fine, PNG works fine, HTML works fine, it is just when you save to xls format.

I have increased the memory client up to 4 Gb but it makes no difference. I have tried macOS and Windows Clients and both take the same amount of time.

It is ignition 7.9.12

Does anyone has had this kind of behavior?

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [May 19, 2020, 12:10pm UTC](https://forum.inductiveautomation.com/t/saving-reports-to-excel-crashes-client/34853/2 "2020-05-19T12:10:35Z")

</div>

It shouldn’t be taking 15minutes, but as for it locking uo your gui, you should be running the excel export function using ~~invokeLater~~ so that it runs in its own thread and doesn’t tie up the gui

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 19, 2020, 12:11pm UTC](https://forum.inductiveautomation.com/t/saving-reports-to-excel-crashes-client/34853/3 "2020-05-19T12:11:48Z")

</div>

psst! invokeLater() does not use its own thread–you need invokeAsynchronous() for that.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [May 19, 2020, 12:15pm UTC](https://forum.inductiveautomation.com/t/saving-reports-to-excel-crashes-client/34853/4 "2020-05-19T12:15:54Z")

</div>

Whoops, that’s the one!

---

<div class="post-metadata">

**Author:** ![fcarrion](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/fcarrion/32/24407_2.png) [@fcarrion](https://forum.inductiveautomation.com/u/fcarrion)\
**Post date:** [May 19, 2020, 1:30pm UTC](https://forum.inductiveautomation.com/t/saving-reports-to-excel-crashes-client/34853/5 "2020-05-19T13:30:36Z")

</div>

Thanks for the answer, the thing is that the saving command is being issued with a right click on the report viewer, so I don’t have control over it.  
I have checked that it takes longer when more data is on the report (obviously) but 15 minutes for such a small file makes no sense. Any ideas why this may be happening?
