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 Jul 09, 2025 1:19 pm

attachments.zip
Test examples
(431.43 KiB) Downloaded 405 times
Hi,

After upgrading Spire.Office from version 8.9.2 to 10.1.0 and above, we have encountered significant performance issues when converting Excel files to PDF documents.

Below is a simplified version of the code we are using:

Code: Select all
using (var workbook = new Workbook())
{
    workbook.LoadFromStream(request.FileStream);

    for (var i = 0; i < workbook.Worksheets.Count; i++)
    {
        // workbook.Worksheets[i].PageSetup.IsFitToPage = true;
        workbook.Worksheets[i].PageSetup.FitToPagesWide = 1;
        workbook.Worksheets[i].PageSetup.FitToPagesTall = 0;
    }

    workbook.SaveToStream(response.Stream, Spire.Xls.FileFormat.PDF);

    return response;
}


Performance Comparison
Test File Spire.Office 8.9.2 Spire.Office 10.1.0+
test1 < 1 second ~29 seconds average
test2 ~40 seconds average Never completes

We are attaching the two mentioned test files (test1 and test2) to help you reproduce the issue.

If you need any additional information, please don't hesitate to ask.

bradjen
 
Posts: 29
Joined: Thu Jul 25, 2019 6:07 am

Thu Jul 10, 2025 7:00 am

Hello,

Using the code and files you provided, I have tested with Spire.Office 8.9.2, Spire.Office 10.1.0, and the latest version of Spire.XLS 15.6.6 separately. However, I was unable to reproduce the significant performance issues you encountered. Here are my test results:
Test File Spire.Office 8.9.2 Spire.Office 10.1.0 Spire.Xls 15.6.6
test1 ~1 seconds average ~1.5 seconds average ~1.5 seconds average
test2 ~8 seconds average ~12 seconds average ~12 seconds average

It can be seen that although there is a difference in the conversion time between the old and new versions, but the difference is not as significant as yours. My testing environment is Windows 11, 64 bit, 16GB RAM, and my project type is. NET Framework 4.8.0.

Could you provide us with your testing environment (e.g., Windows 11, 64bit) and project type (e.g., console app, .NET Framework 4.8.0)?This information will help us investigate your issue more accurately and offer an effective solution.

We are looking forward to your feedback.
Sincerely,
Talia
E-iceblue support team
User avatar

talia.liu
 
Posts: 331
Joined: Mon Apr 14, 2025 3:33 am

Thu Jul 10, 2025 7:24 am

Hi,

Our application targets .NET 8 and runs in a Linux 64-bit environment with 4 GB of RAM.
We also tested the same scenario in developer mode on a Windows 64-bit environment, and the results were identical.
Additionally, we tried using Spire.Office for .NET Standard (same application targets), but the outcome remained the same.

bradjen
 
Posts: 29
Joined: Thu Jul 25, 2019 6:07 am

Thu Jul 10, 2025 10:40 am

Thank you for sharing this.
I will conduct testing in an environment that matches yours and provide feedback afterward.
Sincerely,
Talia
E-iceblue support team
User avatar

talia.liu
 
Posts: 331
Joined: Mon Apr 14, 2025 3:33 am

Fri Jul 11, 2025 10:03 am

After further testing, I was able to reproduce the issue you encountered on the Linux system. Here are my test results:
Test File Spire.Office 8.9.2 Spire.Office 10.1.0 Spire.Xls 15.6.6
test1 ~1 seconds average ~14 seconds average ~7 seconds average
test2 ~40 seconds average ~650 seconds average ~220 seconds average

As the test results indicate, the conversion time for Spire.Office 10.1.0 and later versions has indeed increased compared to version 8.9.2. I also tested with the latest version (Spire.XLS 15.6.6), test1.xlsx took approximately 7 seconds, while test2.xlsx took around 220 seconds. Although there is some improvement compared to Spire.Office 10.1.0, the performance is still slower than version 8.9.2.

I have logged this issue in our bug tracking system (Tracking #SPIREXLS-5888). Our Development team will conduct further investigations and attempt to optimize the process further. We will keep you informed of any progress.

In the meantime, you may also try the latest version https://www.nuget.org/packages/Spire.XLSfor.NETStandard/15.6.7 to test.
Sincerely,
Talia
E-iceblue support team
User avatar

talia.liu
 
Posts: 331
Joined: Mon Apr 14, 2025 3:33 am

Mon Jul 14, 2025 6:16 am

Hi,
We hope you will make some progress soon because this is kind a urgent for us.

bradjen
 
Posts: 29
Joined: Thu Jul 25, 2019 6:07 am

Mon Jul 14, 2025 7:10 am

Hello,

I have raised the priority of your issue and urged the developers to fix it as soon as possible. Please spare us a little more time, thanks for your understanding.
Sincerely,
Talia
E-iceblue support team
User avatar

talia.liu
 
Posts: 331
Joined: Mon Apr 14, 2025 3:33 am

Mon Aug 04, 2025 12:08 pm

Hi, do you have any updates on this topic?

bradjen
 
Posts: 29
Joined: Thu Jul 25, 2019 6:07 am

Tue Aug 05, 2025 1:23 am

Thanks for your following up.
Regarding the issue SPIREXLS-5888, our development team has readjusted the internal code and will conduct further testing. We will notify you as soon as the official version is available. Thank you for your patience and understanding.
Sincerely,
Talia
E-iceblue support team
User avatar

talia.liu
 
Posts: 331
Joined: Mon Apr 14, 2025 3:33 am

Wed Sep 24, 2025 10:04 am

Hello,
Glad to inform you that our latest version(Hotfix:Spire.Xls.15.9.7) which fixed the issue(SPIREXLS-5888), welcome to test. Looking forward to your testing feedback.
Website:
https://www.e-iceblue.com/Download/download-excel-for-net-now.html
Nuget:
https://www.nuget.org/packages/Spire.XLS/15.9.7
https://www.nuget.org/packages/Spire.XLSfor.NETStandard/15.9.7
Sincerely,
Talia
E-iceblue support team
User avatar

talia.liu
 
Posts: 331
Joined: Mon Apr 14, 2025 3:33 am

Return to Spire.XLS