Save data in different formats without exporting

6 posts, 0 answers
  1. Keshav
    Keshav avatar
    22 posts
    Member since:
    Sep 2014

    Posted 13 Nov 2014 Link to this post

    Hi Telerik Team ,

    I have been trying hard to save the data in Radgrid as word, excel, pdf formats.
    I am successful in doing that using the radgrid - Exporting method.
    But along with save, it also exports due to which we get the popup asking to save or open the file.
    We can use Response.Redirect(Request.UrlReferrer.ToString()) to prevent the popup. But it doesnot seem handy in my situation.

    My question is is there any workaround. Can I try it using telerik report viewer object ?
    Can we make the use of report viewer exporting functionality to achieve what I need to ?
    Any solution to my problem would be appreciated.

    Thanks in advance ,
    Anurag
  2. Kostadin
    Admin
    Kostadin avatar
    1713 posts

    Posted 18 Nov 2014 Link to this post

    Hi Anurag,

    I am afraid I am not completely understand your requirement. If you need to export the grid in a different formats on the server then you can use the approach from the following example. Otherwise could you please elaborate a little bit more on the scenario which you are trying to achieve in order to provide you with more to the point answer?

    Regards,
    Kostadin
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Keshav
    Keshav avatar
    22 posts
    Member since:
    Sep 2014

    Posted 20 Nov 2014 in reply to Kostadin Link to this post

    Hi Kostadin,

    Thank you for the example, but it does the same what i did with radgrid object.
    Currently I am trying to create a library that will save any report in word, excel and pdf.
    I want to use web report viewer object.
    Can you please tell me how can I exploit the report viewer events to save it in different formats.
  5. Kostadin
    Admin
    Kostadin avatar
    1713 posts

    Posted 25 Nov 2014 Link to this post

    Hello Keshav,

    Could you please verify that you are using a UI for ASP.NET and not the Reporting. Note that in UI for ASP.NET there isn't a report viewer and all of the exporting functionality is built-in in RadGrid control.

    Regards,
    Kostadin
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. Keshav
    Keshav avatar
    22 posts
    Member since:
    Sep 2014

    Posted 25 Nov 2014 Link to this post

    Hi Kostadin,

    I am using Report Viewer for ASP.NET AJAX.
    Please correct me if my concept is not clear.

    Regards ,
    Keshav
  7. Kostadin
    Admin
    Kostadin avatar
    1713 posts

    Posted 28 Nov 2014 Link to this post

    Hello Keshav,

    Note that Report Viewer is part of Telerik Reporting and you can use it to export the data to Excel, Word and PDF. If you intend to use it you can chack out the following help article which elaborate more on passing grid's data to Telerik Reporting. After you get the data you need to pass it to the Report Viewer that needs to be create as described in the following articles.
    Otherwise if you want to use the built-in export functionality of RadGrid you can use the firstly provided example.

    Regards,
    Kostadin
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017