Hello team
I've the following code for exporting a grid in various formats.
I've huge number of records in the grid. When i do an export i get OutOfMemoryException. Is there a workaround to eliminate this error?
Thank you
Regards
NLV
I've the following code for exporting a grid in various formats.
| if (ddlRBExportFormat.SelectedValue.Equals("MSExcel", StringComparison.InvariantCultureIgnoreCase)) |
| { |
| rgReportBuilder.MasterTableView.ExportToExcel(); |
| } |
| else if (ddlRBExportFormat.SelectedValue.Equals("MSWord", StringComparison.InvariantCultureIgnoreCase)) |
| { |
| rgReportBuilder.MasterTableView.ExportToWord(); |
| } |
| else if (ddlRBExportFormat.SelectedValue.Equals("PDF", StringComparison.InvariantCultureIgnoreCase)) |
| { |
| rgReportBuilder.MasterTableView.ExportToPdf(); |
| } |
| else if (ddlRBExportFormat.SelectedValue.Equals("CSV", StringComparison.InvariantCultureIgnoreCase)) |
| { |
| rgReportBuilder.MasterTableView.ExportToCSV(); |
| } |
I've huge number of records in the grid. When i do an export i get OutOfMemoryException. Is there a workaround to eliminate this error?
Thank you
Regards
NLV