We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Conditional formatting causing StackOverflowException when saving to PDF


A StackOverflowException is occurring when the attached XLSX file is saved to PDF with Aspose.Cells for .NET 20.4 using the following simple code:
input.zip (12.8 KB)

var workbook = new Aspose.Cells.Workbook("input.xlsx");

This appears to be related to conditional formatting rules. If all conditional formatting rules in the workbook are deleted, no error is thrown.

Assuming you are able to reproduce, can you please advise any workaround in the meantime as StackOverflowExceptions cannot be caught.


We were able to observe the issue but we need to look into it more. We have logged the issue in our database for investigation and for a fix. Once, we will have some news for you, we will update you in this topic.

This issue has been logged as

CELLSNET-47351 - Conditional formatting causing StackOverflowException when saving to PDF

This is to inform you that we have fixed your issue (logged earlier as “CELLSNET-47351”) now. We will soon provide you the fixed version after performing QA and incorporating other enhancements and fixes.

The issues you have found earlier (filed as CELLSNET-47351) have been fixed in Aspose.Cells for .NET v20.5. This message was posted using Bugs notification tool by Amjad_Sahi

I have tested the new release against the relevant Excel files, and it is now working well. Thank you!


Good to know that your issue is sorted out by the new version/fix. Feel free to contact us any time if you need further help or have some other issue or queries, we will be happy to assist you soon.