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

Change Report Path during Running

Thread ID:





128483 Jan 25,2017 11:38 AM UTC Jan 27,2017 05:05 AM UTC ASP.NET MVC 3
Tags: ReportViewer
Anas Alwindawee
Asked On January 25, 2017 11:38 AM UTC

Hello Dears,

I just wonder if you help me regard my below query.

I have a report viewer rendered with specific rdlc report, I want to change the rdlc report and keep the same dataset and datascource during running and without get back to controller action, where my both reports are with the same dataset, is that possible.


Yuvaraj Devarajan [Syncfusion]
Replied On January 26, 2017 07:53 AM UTC

Hi Anas, 

Thanks for contacting Syncfusion support. 

We can dynamically change the Report RDLC file in viewer page by changing the report name in reportpath property and we can pass the datasource value in WebAPI controller as shown in below code example.  

        function onChange(args) { 
            var url = document.URL;                                  
                  reportServiceUrl: url + 'api/ReportApi', 
                  processingMode: ej.ReportViewer.ProcessingMode.Local, 
                  reportPath: '~/App_Data/' + args.selectedText                   

public void OnInitReportOptions(ReportViewerOptions reportOption) 
            reportOption.ReportModel.DataSources.Add(new ReportDataSource { Name = "Sales", Value = SalesDetails.GetData() }); 

We have prepared a sample and it can be downloaded from, 

Yuvaraj D. 

Anas Alwindawee
Replied On January 26, 2017 09:03 AM UTC

Hi Yuvara,

Thanks for your kind support, it's work perfectly.


Yuvaraj Devarajan [Syncfusion]
Replied On January 27, 2017 05:05 AM UTC

Hi Anas, 
Thanks for the update. We are happy to hear that your issue is resolved. 
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

This page will automatically be redirected to the 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