or
RptOrders
orders = new ObjDataSourceMasterDetail.Reports.RptOrders();
orders.DataSource = Order.CreateOrderList(); //taken from sample provided by Telerik
this.reportViewer1.Report = orders;
reportViewer1.RefreshReport(); //exception occurs after call to RefreshReport()
| Imports System.ComponentModel |
| <Description("A collection of Product-related reports")> _ |
| Public Class ReportBook |
| Inherits Telerik.Reporting.ReportBook |
| Public Sub New() |
| Me.Reports.Add(New DashBoard()) |
| Me.Reports.Add(New ProductSales()) |
| Me.Reports.Add(New ProductCatalog()) |
| Me.Reports.Add(New ProductLineSales()) |
| End Sub |
| End Class |
| BusinessObjects.ProjectStatementReportCollection collection = new BusinessObjects.ProjectStatementReportCollection(); |
| collection.Query.Where(collection.Query.ProjectStatementReportId == projectStatementReportId); |
| DataTable dt = collection.Query.LoadDataTable(); |
| ProjectStatementReport report1 = new ProjectStatementReport(); |
| report1.DataSource = dt; |
| ReportViewer1.Report = report1; |
| private void detail_ItemDataBound(object sender, EventArgs e) |
| { |
| Telerik.Reporting.Processing.DetailSection section = (Telerik.Reporting.Processing.DetailSection)sender; |
| System.Data.DataRow row = (System.Data.DataRow)section.DataObject.RawData; |
| Telerik.Reporting.Processing.TextBox procTextbox = (Telerik.Reporting.Processing.TextBox)section.ChildElements.Find("textBox2", true)[0]; |
| procTextbox.Value = row["Construction_Mgmt_In"].ToString(); |
| } |