RS
Rajarajeswari S
Syncfusion Team
October 22, 2007 07:31 AM UTC
Hi Alexander,
Thanks for using Syncfusion products.
I regret for the long delay in response.
There is no particular property to set background color for the whole document but we can set the DefaultStyles to columns, using that we can apply background color for all the columns. Please refer the below code snippet which illustrates this.
IStyle columnsstyle = workbook.Styles.Add("ColumnStyle");
columnsstyle.Color = Color.Red;
for (int i = 1; i <= 256; i++)
{
//Set Styles
sheet.SetDefaultColumnStyle(i, columnsstyle);
}
Since the number of columns in Excel file is 256, the loop has to execute till 256 times.
Please let me know if this helps you.
Regards,
S.Rajarajeswari
AL
Alexander
October 23, 2007 08:06 AM UTC
Thank you. This solution solved problem.