The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I'm coping Range from one XLS file to another. In original file I have white background, although Windows default background is grey(or some other...) so after code like this...
RSRajarajeswari 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.