I have a ReportViewer in an asp.net project which loads a report in
ProcessingMode = ProcessingMode.Remote (A .rdl report that sits on an SSRS server)
I have a DataSet which was generated somewhere else and I want to push it into the report via code. How can I do that ? (In local mode , .rdlc, it seems pretty easy...)
first, create a Parameter in RDL.
Then in the dataset, put:
=Parameters!Example.value
The code to send a parameter, for example:
ReportParameter parameter1 ReportParameter = new ("example", nameDataSet.toString);
ReportViewer1.ServerReport.SetParameters (ReportParameter new [] {parameter1 });
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.