Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
142545 | Feb 8,2019 07:16 PM UTC | Feb 11,2019 07:27 AM UTC | WinForms | 1 |
![]() |
Tags: SfDataGrid |
Me.sfDataGrid1.ShowBusyIndicator = True
void ExportToPDFButton_Click(object sender, System.EventArgs e)
{
busyIndicator.Show(this.sfDataGrid1.TableControl);
var options = new ExcelExportingOptions();
options.CellExporting += Options_CellExporting;
var excelEngine = sfDataGrid1.ExportToExcel(sfDataGrid1.View, options);
var workBook = excelEngine.Excel.Workbooks[0];
workBook.SaveAs("Book.xlsx");
System.Diagnostics.Process.Start("Book.xlsx");
busyIndicator.Hide();
}
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.