Click here to Skip to main content
15,885,782 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Mine is a single page RDLC report with Header, Body and footer. I the body there is one Tablix with grouping w.r.t a property in the dataset and I have set the group to the rows in the Tablix and have checked the option "Between each instance of a group" in Page Break Options, along with this I have a text box with an expression of a value in the dataset.

Ex: An employee report with his personal details(Name, DOB, SEX, Experience, Salary) in the Tablix and EmployeeID in the Text box.

Now in the Dataset we have records of 5 employees. The outcome of the report is 5 pages of report with Header, Body and footer and in the body of each page the Tabix is repeated printing all the 5 records one after the other, but the Text Box with Employee ID (which is above the Tablix)is printed only once in the first page. I require Text Box also to be printed with the Employee ID in all the Pages.

What would be the absolute resolution for this scenario in the RDLC Report?

I have developed this requirement in my Visual Studio 2012 MVC4.
Posted

1 solution

Hi,

If somebody is still looking for the answer. This is how it works for me.

Add the Grouping on the EmployeeID in the Tablix. Give a different name to the textbox with the value of EmployeeIDGroup (txt_EmployeeID)

Now in the header text box add the following expression:

=First(ReportItems!txt_EmployeeID.Value)

Now if you do not want to show the EmployeeID in the Tablix. Select the column and in the properties change the Hidden property to True.

Now, whenever value of the EmployeeID in Tablix will change it will change the value of the textbox in the header also.
 
Share this answer
 
Comments
Member 11870484 8-Sep-15 4:44am    
Thanks for the resolution.
BUNTYKATAL 21-Feb-17 9:48am    
my header textbox not show in report....

please help.....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900