Hi,
I have a report that prints payment information of employees in a Department. All items are fetched in a DataTable and the is set as the DataSource of the report. So far, everything works OK.
But in the PageHeader section there are a few fields I would like to print according to the selection made. Like Department name, Selectino year and Selection Month. The thing is that I am not allowed to interfere with the DataTable to add relvant columns to call althese necessary information databound and relate it to the TextBox with "Fields.DepartmentName".
So I choose to use this code:
in the various method such as:
but unfortunately, none of them worked. What am I doing wrong? Where should I make these assignments. Which method duits this situation fine?
Regards...
I have a report that prints payment information of employees in a Department. All items are fetched in a DataTable and the is set as the DataSource of the report. So far, everything works OK.
But in the PageHeader section there are a few fields I would like to print according to the selection made. Like Department name, Selectino year and Selection Month. The thing is that I am not allowed to interfere with the DataTable to add relvant columns to call althese necessary information databound and relate it to the TextBox with "Fields.DepartmentName".
So I choose to use this code:
txtDepartmentName.Value = GetDepartmentName(this.DeptID); |
private void MyReport_NeedDataSource(object sender, System.EventArgs e) | |
private void MyReport_ItemDataBound(object sender, System.EventArgs e) | |
private void pageHeader_ItemDataBound(object sender, System.EventArgs e) |
but unfortunately, none of them worked. What am I doing wrong? Where should I make these assignments. Which method duits this situation fine?
Regards...