This is a migrated thread and some comments may be shown as answers.

Save data in different formats without exporting

5 Answers 60 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Keshav
Top achievements
Rank 1
Keshav asked on 14 Nov 2014, 04:19 AM
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

5 Answers, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 18 Nov 2014, 01:06 PM
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.

 
0
Keshav
Top achievements
Rank 1
answered on 21 Nov 2014, 05:54 AM
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.
0
Kostadin
Telerik team
answered on 25 Nov 2014, 12:09 PM
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.

 
0
Keshav
Top achievements
Rank 1
answered on 25 Nov 2014, 02:12 PM
Hi Kostadin,

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

Regards ,
Keshav
0
Kostadin
Telerik team
answered on 28 Nov 2014, 07:43 AM
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.

 
Tags
General Discussions
Asked by
Keshav
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Keshav
Top achievements
Rank 1
Share this question
or