We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ReportViewer export filename

Thread ID:





127285 Nov 8,2016 10:06 AM UTC Nov 9,2016 06:52 AM UTC ASP.NET MVC 1
Tags: ReportViewer
Asked On November 8, 2016 10:06 AM UTC

I'm passing the RDL to the control via stream. When I export the report, the filename is always report.pdf, report.xlsx, etc. How can I change that download file name to something more meaningful?

Yuvaraj Devarajan [Syncfusion]
Replied On November 9, 2016 06:52 AM UTC

Hi Richard,   
Thanks for contacting Syncfusion support.   
We have a “ReportExport” event in ReportViewer control to set the report name dynamically while clicking the reportviewer export option as shown in the following code example,      
    function onReportExport(args) {  
        //increament file name in JS      
        var _exportName = $(args.exportAction).find('#' + this._id + '_exportfileName');  
        var currentDate = new Date();  
        var date = currentDate.getDate();  
        var month = currentDate.getMonth();  
        var year = currentDate.getFullYear();  
        _exportName.val('DemoReport ' + date + '-' + month + '-' + year);  
<body style="overflow: hidden; position: static; margin: 0px; padding: 0px; width: 100%; height: 100%">  
    <div style="width:100%; height:100%; position:absolute;">  
We have prepared a sample and it can be downloaded from,    

Please refer to the below UG documentation for more information,    

Yuvaraj D.  


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon