Last post Mar 02, 2012 10:58 AM by sbmdude
Aug 02, 2007 12:59 AM|rajkant|LINK
I have a local report that's being displayed in reportviewer control.
I have to display few fields in reportviewer header and would like to display them in all pages of report.
can anyone help me how to achieve this?
Thanks in advance,
Aug 02, 2007 03:14 AM|moredotnet|LINK
You will need to add page headers to the reportviewer control.
See this link for more
(pls mark as answer if reply helps)
Aug 02, 2007 05:07 AM|rajkant|LINK
thanks for reply.
I gone through this link already.
problem is, If reportviewer has more than one page to be displayed, the field value is displayed only on first page. I would like to have field value to be displayed in Page header in all pages. any idea how to do this?
Aug 03, 2007 06:36 AM|akjoshi|LINK
Instead of adding the fields(textbox etc) in header add them to the body and right-click the textbox control, etc in Layout view -> select Properties -> select the General tab -> select
'Repeat report Item with data region on every page' and select the table control/data region that will continue on multiple pages.
Apart from this check this link for other solution -
Aug 07, 2007 08:41 AM|rajkant|LINK
Thanks for the link. before posting here, i tried the steps given mentioned in your link. Unfortunately, it didn`t work as expected.
I found a neater way of adding headers to local report with using ReportParameters.
1. Create required ReportParameters using a dailog with menu item Report->ReportParameters. Report menu is displayed when focus is set to ur report rdlc file.
2. use the following logic in ur souce file
str = drHeader.ToString();
3. create a text box in local report header and add following expression to display required field value :
Mar 02, 2012 10:58 AM|sbmdude|LINK
Thank You... You saved me...