public void CreateReport(IHistoryManager historyManager, ReportOptions reportOptions) { var dataTable = historyManager.ToDataTable(); dataTable.TableName = reportOptions.SheetName; ExportToExcelTask.ExportDataTableToExcel(dataTable, reportOptions.ReportFullPath, true); }
public void ExportDataTableToExcel(DataTable dataTable, string fileName, bool openExcel) { ExportToExcelTask.ExportDataTableToExcel(dataTable, fileName, openExcel); }