or
Dim _Report As New TSVStandardReports.Rpt_TelerikCustomersWithTwentyAccountsDirectCast(_Report.DataSource, Telerik.Reporting.SqlDataSource).ConnectionString = sConnectionString_Report.ReportParameters("BranchID").Value = "42"ReportViewer1.Report = _Reportpublic Report1() { /// <summary> /// Required for telerik Reporting designer support /// </summary> InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // this.NeedDataSource += new System.EventHandler(this.Report1_NeedDataSource); } private void Report1_NeedDataSource(object sender, EventArgs e) { Telerik.Reporting.Processing.Report report = (Telerik.Reporting.Processing.Report)sender; int advertiserID = int.Parse(report.Parameters["advertiserID"].Value.ToString()); DateTime dtStartDate = DateTime.Parse(report.Parameters["startDate"].Value.ToString()); DateTime dtEndDate = DateTime.Parse(report.Parameters["endDate"].Value.ToString()); report.DataSource = (GetBannersByMonthByAdvertiser(advertiserID, dtStartDate, dtEndDate)).Tables[0]; }