Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Wed Jun 15, 2022 8:45 pm

We are trying to use the SaveChartAsImage to convert some excel charts to images but every once in and while the CPU will get maxed out and will never return to to normal, we have to kill the process. Our stack trace is pointing to this method as the reason, but we can rerun the conversion on the same chart a few minutes later and it works just fine.
Is there anything that we can do to stop this from happening?

vmidevelop
 
Posts: 2
Joined: Wed Jun 15, 2022 8:40 pm

Thu Jun 16, 2022 10:13 am

Hello,

Thanks for your inquiry.

I tried to convert some excel charts to image by SaveChartAsImage but did not encountered the CPU issue. Could you please provide more information about it. Such as the sample excel file and your system info. Thanks in advance.
Sincerely,
Andy
E-iceblue support team
User avatar

Andy.Zhou
 
Posts: 483
Joined: Mon Mar 29, 2021 3:03 am

Thu Jun 16, 2022 12:14 pm

Unfortunately the excel files we are working with are generated on the fly and only exist in memory so I have no way of being able to share them at this time.
The system is windows, 2 cpu cores, 16 GB of memory.

vmidevelop
 
Posts: 2
Joined: Wed Jun 15, 2022 8:40 pm

Return to Spire.XLS

cron