Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to programmatically export a report in an ASP.NET application

$
0
0

This example demonstrates how to export an XtraReport instance in an ASP.NET application via the Response.BinaryWrite() method. First, in the Default.aspx page, you should select the export file format and specify whether the exported document intended to be displayed "inline" i. e. in the same browser window. Then, click the "Export" button. The report is created and stored in the Session variable. The user is then redirected to the ReportOutput.aspx. The report, persisting in the Session, will be exported to this page base in the settings you've specified on the first page.

Question Comments

Added By: Rafael Espinosa at: 8/13/2012 6:12:20 AM    

Thanks for you response,

But I don ́t want to make a redirect to another page!! I would like to show directly the browser download file dialog (open or save) with the data of my created XtraReport.

Added By: Rafael Espinosa at: 8/13/2012 6:53:46 AM    

I downloaded your example and everything has worked correctly. Thanks for your response

Added By: sateesh at: 10/3/2012 12:27:55 AM    

Hi,

If i had a parameters in report , so below mentioned code is not exporting the data in rtf format

Thanks
Sateesh myadaram

Added By: marc parthoens at: 7/12/2016 7:27:25 AM    Hi there,

I tried this example that works fine.
I know that is not a Devexpress issue, but could you tell me how to come back automatically to a new default page after showing the report?

Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>