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

Free Support Forum - aspose.com

Problem with Worksheet.AutoFitRows()

with the attacjed template

Worksheet.AutoFitRows()

return the following error

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Collections.ArrayList.get_Item(Int32 index)
at Aspose.Cells.Rows.x6d3720b962bd3112(Int32 xc0c4c459c6ccbd00)
at Aspose.Cells.Worksheet.AutoFitRows()

version : Aspose.Cells 4.8.0.0

Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for considering Aspose.

I tested your file and the issue occurs when you use AutofitRows() on an empty worksheet. We will check it and get back to you soon.

Thank You & Best Regards,

Hi,

Sorry for the delay.

We have fixed your mentioned issue in the latest versions/fixes of the product.

Please try the attached version as it fixes your mentioned issue.

Thank you.