Hi,
I am comparing properties in an Excel document.
When I do
CheckEqual(worksheet1.TabColor, worksheet2.TabColor);I get the following error on both TabColor properties:
‘worksheetX.TabColor’ threw an exception of type 'System.NullReferenceException’
The exception is:
System.NullReferenceException: Object reference not set to an instance of an object.I doesn’t really matter to me if both properties throw an exception, as long as they are the same. However, I am wondering if this is my fault? Is there something I set-up wrong? To get there, I open an Excel file using workbook.open(stream) and then workbook.Worksheets[i]. The problem doesn’t occur for every worksheet contained within my workbook.
at Aspose.Cells.Record.PaletteRecord.GetColor(Int32 index)
at Aspose.Cells.Worksheet.get_TabColor()
Thanks,
Marie