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

Free Support Forum - aspose.com

Aspose.Cells error: D25-Length cannot be less than zero

Hi,
I having a problem with a trial version of Aspose.Cells, I’m evaluating it for use with a client app.

I’m trying to open an XLSM file using the following code, but i keep getting the error detailed below, can anyone help? Is it a problem with the actual XLSM file?

Cheers,
Ross

Code:

Workbook workbook = new Workbook();
workbook.Open(file, FileFormatType.Excel2007Xlsm); //errors on this line
Cell cell = workbook.Worksheets[0].Cells[“I4”];
litCellValue.Text = cell.Value.ToString();

Error:

Error in Cell: D25-Length cannot be less than zero.
Parameter name: length"=MAX(0,A552,B552,C552)+MAX(0,A557,B557,C557)+MAX(A562:B562:C562)+MAX(A567+B567+C567)".

        <font size="2" face="Arial">

        <b> Description: </b>An

unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the
error and where it originated in the code.

        <b> Exception Details: </b>Aspose.Cells.CellsException: Error in Cell: D25-Length cannot be less than zero.<br>Parameter name: length"=MAX(0,A552,B552,C552)+MAX(0,A557,B557,C557)+MAX(A562:B562:C562)+MAX(A567+B567+C567)".</font>

Hi,

Please try the attached latest fix v4.8.2.6 if it fixes the issue.

If you still find the issue, kindly post your sample template XLSM file here, we will look into your issue soon.

Thank you.