private void btnExport_Click(object sender, EventArgs e) { lblMessage.Text = ""; // Export all the details try { // Get the datatable to export DataTable dtEmployee = dsEmployee.Tables["tblTicketing"].Copy(); // Export all the details to Excel RKLib.ExportData.Export objExport = new RKLib.ExportData.Export("Win"); objExport.ExportDetails(dtEmployee, Export.ExportFormat.Excel, "C:\\Ticketing.xls"); lblMessage.Text = "Successfully exported to C:\\Ticketing.xls"; } catch (Exception Ex) { lblMessage.Text = Ex.Message; } } error is like object reference is not set to an instance...
DataTable dtEmployee = dsEmployee.Tables["tblTicketing"].Copy();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)