How to display data in the Page Header

Sometimes it is necessary to display some data in PageHeader. However, this element haven't the DataSource property. What should be done in this case? There is a way to use the data in PageHeader.
You can do this as follows:
For example, you have a Company class :
public class Company


        public string Name { get; set; }

You register the object in the report manager:
reportManager1.DataSources.Add("Company", new Company()
 { Name = "Perpetuum soft" });

Then in the text box, you can use the following code to retrieve the name of the company:
GetData ("Company.Name")

Add Feedback