Exporting large result sets to Excel outofmemoryerror

2 posts, 0 answers
  1. z
    z avatar
    3 posts
    Member since:
    Mar 2011

    Posted 29 Aug 2014 Link to this post

    I have a question about export to excel on radgridview


    I have radgridview with 50000 rows data ,call grid.Export()  exception

    version:2013.2.729.1050

    code:SaveFileDialog dialog=new SaveFileDialog();

    using(Stream stream=dialog.OpenFile())
    {
    GridViewExportOptions exportOptions=new GridViewExportOptions();
    grid.Export(stream,exportOptions);
    }




  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 01 Sep 2014 Link to this post

    Hi,

    Generally all the data to be exported is saved in memory, so the exporting capacities are not huge.

    For more complex scenarios I would recommend you to use our Reporting tools which are built to suit various exporting scenarios. 

    Regards,
    Didie
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. DevCraft banner
Back to Top