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
470
DataPresenterExcelExporter OutOfMemory exception
posted

Hi Support,

We are using infragistics InfragisticsWPF4.DataPresenter.v11.2 for the excel exporting and sometimes we could get the outofmemory exception. Here is the stacktrace:

   System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.

      at Infragistics.Windows.DataPresenter.ExcelExporter.DataPresenterExcelExporter.GetCellFormatFromFormatSettings(DataPresenterExcelExporterHelper exportHelper, FormatSettings formatSettings, Field field, FieldLayout layout, Boolean isLabel)

      at Infragistics.Windows.DataPresenter.ExcelExporter.DataPresenterExcelExporter.WriteSingleRecord(DataPresenterExcelExporterHelper exportHelper, Record record, FormatSettings cellFormatSettings)

      at Infragistics.Windows.DataPresenter.ExcelExporter.DataPresenterExcelExporter.ProcessSingleRecord(DataPresenterExcelExporterHelper exportHelper, Record record, Int32 nestingOffset)

      at Infragistics.Windows.DataPresenter.ExcelExporter.DataPresenterExcelExporter.ProcessRecordInternal(DataPresenterExcelExporterHelper exportHelper, Record record, ProcessRecordParams processRecordParams)

      at Infragistics.Windows.DataPresenter.ExcelExporter.DataPresenterExcelExporterHelper.ProcessRecord(Record record, ProcessRecordParams processRecordParams)

      at Infragistics.Windows.DataPresenter.ExportRecordEnumerator.ProcessRecord(Record record, ProcessRecordParams recordParams)

      at Infragistics.Windows.DataPresenter.ExportRecordEnumeratorBase.Process(Nullable`1 duration)

      at Infragistics.Windows.DataPresenter.ExportHelper.Export(IDataPresenterExporter exporter, IExportOptions options)

      at Infragistics.Windows.DataPresenter.ExcelExporter.DataPresenterExcelExporter.Export(DataPresenterBase dataPresenter, WorkbookFormat workbookFormat, ExportOptions options, String filename)

Could you please help check this?

thanks,

Eric

Parents
No Data
Reply
  • 22015
    posted

    Hello Eric,

     

    Thank you for your post!

     

    I have been looking into it and have created a small sample application in order to test the functionality, that you have reported.

    Using the mentioned sample application I was not able to reproduce the issue. Would you please modify it with the functionality you are using, so it shows the issue?

    This way I would be able to further investigate this matter for you and provide you with further information.

     

    Thank you for the cooperation. Looking forward to hearing from you.

     

    DataGrid_ExportingToExcel.zip
Children