FontColor doesn't seem to work
Posted: Sat Jun 04, 2011 10:04 pm
I have used the following (C++) code to assign a value to a cell and format it:
xlSht->AsString[0][0] = "Report for " + dtMthStart.FormatString("mmmm yyyy");
TCell* cl = xlSht->Cell[0][0];
cl->FontName = "Arial Black";
cl->FontStyle = TXFontStyles() << xfsBold;
cl->FontSize = 20;
cl->FontColor = xcRed;
All of this works fine apart from FontColor - no matter what I enter it always stays as the default colour (black).
xlSht->AsString[0][0] = "Report for " + dtMthStart.FormatString("mmmm yyyy");
TCell* cl = xlSht->Cell[0][0];
cl->FontName = "Arial Black";
cl->FontStyle = TXFontStyles() << xfsBold;
cl->FontSize = 20;
cl->FontColor = xcRed;
All of this works fine apart from FontColor - no matter what I enter it always stays as the default colour (black).