Set the reportviwer parameter in the application

How to set .Net reportviewer options?

+3
source share
1 answer
List<ReportParameter> paramList = new List<ReportParameter>();
paramList.Add(new ReportParameter("ClientName", clientName, false)); 
TheReportObject.LocalReport.SetParameters(paramList);

And you must make sure that you define the same named parameters inside the report definition.

+6
source

Source: https://habr.com/ru/post/1704632/


All Articles