Hi, it seems like this should be simple, but I must have a scope or a namespace wrong. Any help would be appreciated. Using Telerik.Reporting in C#.NET, Winforms.
I am trying to generate a report for an invoice. Using the Invoice object as a datasource wasn't working for me, so I instead am using the LineItems as the datasource. However, there is a lot of header data that I don't want to have to use ReportParameters for - I have the Header as an object, so I'd like to reference the Header directly from the designer.
So I have this as my class code:
public partial class InvoiceBalancingReport : Telerik.Reporting.Report
{
public InvoiceHeader Header { get; set; }
public InvoiceBalancingReport(Invoice inv)
{
//
// Required for telerik Reporting designer support
//
InitializeComponent();
Header = inv.Header;
DataSource = inv.LineItems;
}
In a TextBox in the PageHeader section of the report, I then have [ = Header.InvoiceID ] as the text value.
But when I run the report, it cannot find the Header object. So how do I access that public member variable of the report object?