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

Free Support Forum - aspose.com

Getting argument out of range exception error

Hi,

we are using aspose to write data in excel and we are using AutofitRows() to auto fit the rows.

while we are trying to do this we are getting "Argument out of range exception" with msg as

"Index and length must refer to a location within the string.
Parameter name: length"
please help us on this

Hi,

Thanks for your posting and using Aspose.Cells.

Please download and try the latest version: Aspose.Cells
for .NET v7.5.0.1
and see if it resolves your issue.

If your problem still occurs, please provide us your source file and sample code replicating this issue with the latest version. We will look into it and help you asap.