BoldSign®Effortlessly integrate e-signatures into your app with the BoldSign® API. Create a sandbox account!
public void OnInitReportOptions(ReportViewerOptions reportOption)
{
//You can update report options here
reportOption.ReportModel.ReportPath = reportPath + reportOption.ReportModel.ReportPath;
reportOption.ReportModel.DataSources.Clear();
reportOption.ReportModel.DataSources.Add(new ReportDataSource { Name = "DataSetErgebnis", Value = GetDataEgebnis() });
//Set report parameter programmaticaly
List<ReportParameter> parameters = new List<ReportParameter>();
parameters.Add(new ReportParameter() { Name = "ShowPrevYear", Labels = new List<string>() { "Ja", "Nein" }, Values = new List<string>() { "true", "false" } });
reportOption.ReportModel.Parameters = parameters;
}
|
|