Dim rpt As New rptMasterReport() 'retrieving data from the database and send data to Generic List contains a series of CLASS objects setMonthlyTransReport() Dim subRpt As New Telerik.Reporting.SubReport() Dim rptSource As New Telerik.Reporting.InstanceReportSource() rptSource.ReportDocument = rpt rptSource.Parameters.Add(New Telerik.Reporting.Parameter("R1", "=Fields.R1")) subRpt.ReportSource = rptSource 'bind datasource with Generic List contains a series of CLASS objects rpt.DataSource = lstDailyTicketsRevenue ' Assigning the report to the report viewer. frmReportViewer.ReportViewer1.ReportSource = rptSource ' Calling the RefreshReport method for WinForms application. frmReportViewer.ReportViewer1.RefreshReport() 'call form viewr frmReportViewer.Show()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)