Repeating group headers on each page of a report

与世无争的帅哥 提交于 2020-01-25 01:10:06

问题


I have a group header that I'm trying to repeat on each page (if the detail rows for that instance of a group span onto more than one page)

For example, if I have food items in a store, and I group them by category and I use the category as a header I'll get a report like this

Vegetables

Peppers

Carrots

Meat

Chicken

Beef

.

.

.

Etc.

If the listing for one of the categories goes onto a second page, I would want the category header to repeat. So if the instance of the group goes onto a second page I want the header of that group to repeat on each page.

The setup I have in reporting services is like this:

The red circle are the rows of the table I'm trying to get to repeat on each page.

Is this possible to do? And if so, how do I do it?

I have already tried setting the two rows circled to have "KeepWithGroup = After" and "RepeatOnNewPage = "True" and I set the Tablix as a whole to have "Repeat header rows on each page" checked off.


回答1:


You could check the following website;

http://vbcity.com/blogs/xtab/archive/2010/06/14/what-to-do-when-the-repeatcolumnheaders-property-in-a-tablix-isn-t-working.aspx

Helped me a few times when group-headers where not repeating.



来源:https://stackoverflow.com/questions/26128009/repeating-group-headers-on-each-page-of-a-report

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