Hi,
I encountered a strange error when trying to set the font color of a Style object. Isolating the problem, I create a console app with only these lines of code in the Main:
Style style = new Style();
style.Font.Color = System.Drawing.Color.Blue;
Console.WriteLine("current value: {0}", style.Font.Color.ToString());
After assigning the Color object to the Color member of Font, the debugger tells me "'style.Font.Color' threw an exception of type 'System.NullReferenceException'". When trying to write the value, the debugger tells me, rather expectedly, that a "NullReferenceException" was unhandled. This is really weird, as Color is supposed to be a struct, which aren't nullable. Is there something fishy going on in the setter of Color? Is there anything I can do to circumvent this problem? I'm using Aspose.Cells.dll version 5.3.2.0.
Best regards,
Kilian Hekhuis