Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
Create a multiple excel sheets while export data from ultragrid.
posted

Hi all,

I am getting the lack of memory exception while export the data(in case of many rows)

i am getting error in the below bold line .

public void ExportToExcel(string filename, bool saveUltraGridFormat)
        {
            if (_excelExporter == null)
            {
                _excelExporter = new UltraGridExcelExporter();

                //Saves the ultragrid format settings to excel
                if (saveUltraGridFormat)
                    _excelExporter.InitializeColumn += new InitializeColumnEventHandler(UltraGridExcelExporter_InitializeColumn);
                
                _excelExporter.BeginExport += new BeginExportEventHandler(UltraGridExcelExporter_BeginExport);
                _excelExporter.CellExported += new CellExportedEventHandler(UltraGridExcelExporter_CellExported);
                _excelExporter.EndExport += new EndExportEventHandler(UltraGridExcelExporter_EndExport);
            }

            ExcelExporter.Export(this, filename);
        }

Plesae guide me on this

Parents Reply Children
No Data