The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
We are currently working on latest release of the sync-fusion controls. We are trying to pass parameters to the Report at runtime and display parameter value on the Report.
For example, we have designed rdlc. Added ReportParameters in that RDLC. Now, we have taken one textbox to display that value in the parameter. We are passing the value of the parameter using textbox at Run time. How can we achieve this?
On button click, we do as shown below: ReportParameter reportParam = reportViewer1.reportObject.ReportParameters[0]; ParameterValue paramValue = new ParameterValue(); paramValue.Value = Convert.ToString(textBox1.Text); paramValue.Label = "ParamTerritoryID"; ParameterValues paramValues = new ParameterValues(); paramValues.Add(paramValue); ValidValues vv = new ValidValues(); vv.ParameterValues = paramValues; reportParam.MultiValue = false; reportParam.ValidValues = vv; reportViewer1.reportObject.ReportParameters[0] = reportParam; this.reportViewer1.Refresh();
Is this appropriate way to display parameter value on report? or we should go through other way?