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

Free Support Forum - aspose.com

Maximum ammount of (nested) functions per sheet?

Hello, see attachement. I’m not able to calculate this workbook to Aspose. Why?NestedSUMS.zip (3.6 MB)


Thanks for the template file.

Do you get StackOverflowException when calculating formula? Well, the StackOverflowException might occur when calculating formulas with large volume of values. By using relatively smaller stack size settings, the calculation can be succeeded. You may try to add a line of code (in bold) before calculating formulas to your code:
Sample code:

Workbook workbook = new Workbook(strFilePath);
workbook.Settings.CalcStackSize = 30;

Please note WorkbookSettings.CalcStackSize specifies the stack size for calculating cells recursively. The large value for this size will give better performance when there are lots of cells need to be calculated recursively. On the other hand, larger value will raise the risk of StackOverflowException. If a user gets StackOverflowException when calculating formulas, this value should be decreased.

Also, see the document topics for your reference: