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.
Here''s my code:
// Create Excel automation objects
IWorkbook myWorkBook = ExcelUtils.CreateWorkbook(1);
IWorksheet sheet = myWorkBook.Worksheets[0];
Syncfusion.GridExcelConverter.GridExcelConverterControl gecc = new Syncfusion.GridExcelConverter.GridExcelConverterControl();
gecc.GridToExcel(this.Model, sheet);
// Save the workbook to disk so we can launch it via the file system
myWorkBook.SaveAs(path);
myWorkBook.Close();
ExcelUtils.ThrowNotSavedOnDestroy = false;
if (openFile)
{
// Launch the saved workbook
Process proc = new Process();
proc.StartInfo.FileName = path;
proc.Start();
}
Am I missing a setting?
STstanleyj Syncfusion Team February 21, 2006 08:42 AM UTC
Hi Jay,
Please try setting ConverterOptions.
Syncfusion.GridExcelConverter.GridExcelConverterControl gecc = new Syncfusion.GridExcelConverter.GridExcelConverterControl();
gecc.GridToExcel(this.gridDataBoundGrid1.Model, "sheet.xls",Syncfusion.GridExcelConverter.ConverterOptions.ColumnHeaders|Syncfusion.GridExcelConverter.ConverterOptions.RowHeaders);
Best regards,
Stanley