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

Free Support Forum - aspose.com

AutoFitRow(currentRow) throws NullReferenceException

Hi,

I am getting the following exception when I invoke the AutoFitRow() method:

System.NullReferenceException: Object reference not set to an instance of an object.

at ᑘ.᪫.᫸(String و, FontStyle ᒭ, String ࢘)

at ㌤.䔋.䔻(ArrayList 䒰, Workbook ִ, String 䔼)

at ֩.䑌.䑏(Cell ݚ, Int32 ⅉ, Int32 ൄ)

at ֩.䑌.䑓(Graphics ⃠, Cells व, Int32 Դ, Int32 Զ, Int32 Ե, Int32 Է, AutoFitterOptions ٖ)

at ֩.䑌.䑍(Cells व, Int32 Դ, Int32 Զ, Int32 Ե, Int32 Է, AutoFitterOptions ٖ)

at Aspose.Cells.Worksheet.AutoFitRow(Int32 rowIndex)

I am not sure why I am getting this exception, but it seems to have started ever since I upgraded to version 7.0.2.

Sincerely,

Tony V Perez

Hi,

Please test your issue with the latest version:
Aspose.Cells for .NET v7.0.2.7

If the problem persists, then please provide us your source xls/xlsx file causing this exception.