Gembox.spreadsheet.dll
HorizontalAlignment = HorizontalAlignmentStyle.Center, FillPattern = FillPatternStyle.Solid, FillPatternForegroundColor = SpreadsheetColor.FromName(ColorName.DarkBlue), FontColor = SpreadsheetColor.FromName(ColorName.White) ; worksheet.Cells.GetSubrange("A1:D1").Style = headerStyle;
A unique feature of this DLL is direct HTML rendering: gembox.spreadsheet.dll
// Style a header var headerStyle = new CellStyle HorizontalAlignment = HorizontalAlignmentStyle
var workbook = new ExcelFile(); var worksheet = workbook.Worksheets.Add("Sales Report"); HorizontalAlignment = HorizontalAlignmentStyle.Center
// Add data worksheet.Cells[0, 0].Value = "Product"; worksheet.Cells[0, 1].Value = "Qty"; worksheet.Cells[0, 2].Value = "Price"; worksheet.Cells[0, 3].Value = "Total";
using (var reader = ExcelFile.LoadXlsx("hugefile.xlsx", new XlsxLoadOptions ReadDataOnly = true ))