SSRS 2008 - Header on report is not showing Dynamic Data

自作多情 提交于 2020-01-03 18:44:11

问题


I have a personel report that is sorted by department name, yet when I add the field for the department name into the header, it only prints out the first department name correctly. every other page has the header, but still has the initial department name in the header instead of the correct department name. In other words, the field reference to the department name that is in the header of the report does not update. I browsed the data that is uses from a stored procedure and the department names are in the data and they are correct.


回答1:


Ok, this is the answer that OP ended using and was his entire idea, I'm just posting it because op doesn't currently have enough reputation to do it himself:

"Ok, Here is the solution: I had to add another column to the tablix and add a textbox within it which holds the Department name. Then I hid the column from the report, and set a reference to that textbox within header. The name of the textbox within the tablix was named DepartmentName so within the header, I added a textbox with the expression =ReportItems!DepartmentName1.Value. Works like a charm!!! "




回答2:


You need to make sure that after you add the field for the department name into your header (which I assume is a Textbox), the expression for that textbox is not first(Fields!DepartmentName.Value,"Your Dataset") or any other gropuing function. It should be just Fields!DepartmentName.Value, assuming that the header is inside a List.



来源:https://stackoverflow.com/questions/8713411/ssrs-2008-header-on-report-is-not-showing-dynamic-data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!