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

Free Support Forum - aspose.com

Handle Autofit Columns() exception 'index and length must refer to a location within the string error' using Aspose.Cells for .NET in C#

Hi,

I am using .Net and C# with Aspose to create excel

when i tried to use Autofit.Columns() for worksheet i am getting the below error

"index and length must refer to a location within the string..."

please do the needful

Hi,

Thanks for your posting and using Aspose.Cells.

Please download and try the latest version: Aspose.Cells for .NET (Latest Version) and see if fixes your issue.

If your issue still occurs, then please attach your source Excel file causing this exception. We will look into it and update you asap.