Out of Memory Exception on Export

2 posts, 0 answers
  1. Alex
    Alex avatar
    4 posts
    Member since:
    Oct 2015

    Posted 19 Jul 2016 Link to this post

    I have table x  in a database having around 30 columns with 6000 records.

    When bind this table data in xaml using a class representation say List<X>, then on Export I get a Out of Memory Exception.

    But when I Export the same table data using DataTable, then I do not get any exception.

    I wanted to the reason behind this behavior ?



  2. Stefan Nenchev
    Stefan Nenchev avatar
    540 posts

    Posted 21 Jul 2016 Link to this post

    Hi Alex,

    I was not able to reproduce the Exception at my end. Can you please provide more details regarding your setup and the approach you use for exporting the data. Which method are you using for the export and to what format? I have tested the scenario with the ExportToXlsx method and no such issue can be reproduced. I have attached a sample project for your reference. 

    Stefan Nenchev
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top