Rpt.ExportToHttpResponse(ExportFormatType.Excel, Response, true, " Summary Report");
btnExcel.Enabled=true;
protected void btnExcel_Click(object sender, EventArgs e) { try { Rpt.ExportToHttpResponse(ExportFormatType.Excel, Response, true, "Summary Report"); } catch (Exception ex) { Console.WriteLine(ex.Message); ex = null; } finally { Rpt.Dispose(); Rpt.Close(); } btnExcel.Enabled = true; }
Rpt.Dispose(); Rpt.Close();
Rpt.Close(); Rpt.Dispose();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)