Upgrade to Cells- foreground problem


#1

Hi

we used to use Aspose.Excel 3.4.5

and I was able to set cells background by

cells[2,1].Style.ForegroundColor = Color.FromArgb(153, 204, 204);

We've upgraded today to Cells and this line doesn't do anything.

Any idea?

Thanks!


#2

Please add a line of code:

cells[2,1].Style.ForegroundColor = Color.FromArgb(153, 204, 204);

cells[2,1].Style.Pattern = BackgroundType.Solid;


#3

Thank you very much!

Problem solved.