Hi,
I am trying to show multiple reports in a reportbook object in WPF
However , I do not get any ReportSources Collection on my reportbook object , only the reports collection. When I try to use report instead of TypeReportSource it tells me Report is obsolete and I must use ReportSource . I have a standard WPF window, with a reportviewer object but now I want to use a reportbook object to show multiple reports.
var reportViewerWnd = new ReportBookViewerWnd();
var report = new Telerik.Reporting.Report();
var reportBook = new Telerik.Reporting.ReportBook();
var typeReportSource = new Telerik.Reporting.TypeReportSource();
typeReportSource.TypeName = "Schedwin.Reports.Tickets.PassengerTickets, Schedwin.Reports.Telerik";
typeReportSource.Parameters.Add(new Telerik.Reporting.Parameter("ReservationIDX", ReservationIDX));
typeReportSource.Parameters.Add(new Telerik.Reporting.Parameter("ReservationName", ReservationName));
typeReportSource.Parameters.Add(new Telerik.Reporting.Parameter("PaxName", PaxName));
typeReportSource.Parameters.Add(new Telerik.Reporting.Parameter("TicketNo", TicketNo));
typeReportSource.Parameters.Add(new Telerik.Reporting.Parameter("IssuedBy", IssuedBy));
typeReportSource.Parameters.Add(new Telerik.Reporting.Parameter("IssuedDate", IssueDate));
typeReportSource.Parameters.Add(new Telerik.Reporting.Parameter("IssuePlace", IssuePlace));
typeReportSource.Parameters.Add(new Telerik.Reporting.Parameter("RegionalDBName", DatabaseName));
reportBook.Reports.Add(typeReportSource);
reportViewerWnd.ReportViewer.ReportSource = reportBook;
reportViewerWnd.Title = "Passenger Ticket";