[转]Using the Group Pane to Repeat Page Titles

转自:http://www.wiseowl.co.uk/blog/s148/group-pane-advanced-mode.htm

Repeating Page Headers in Reporting Services 2008 R2
Part two of a two-part series of blogs

Getting rows of a table to repeat at the top of each page of a report in SSRS 2008 R2 is anything but straightforward. This blog shows the red herring to avoid and a way to solve this thorny problem.

  1. How to repeat header rows / page titles in SSRS
  2. Using the Group Pane to Repeat Page Titles (this blog)

Posted by Andy Brown on 26 July 2011 | 9 comments

Using the Group Pane to Repeat Page Titles

To get page titles to repeat at the top of each page, you have to jump through a series of hoops.

Designing your Table

The first thing to do is to decide which rows you want to repeat at the top of each page:

Table with top 4 rows selected

Here we'll repeat the 4 rows shown selected (notice that we've included a blank row at the top of the table, to provide an offset from the top of each page).

 

Invoking Advanced Mode in the Grouping Pane

You now need to set properties for each individual row shown above, but unfortunately you can't see them in the grouping pane - yet:

Tick box to choose Advanced Mode

Click on the symbol circled and choose Advanced Mode.

Changing Row Properties

What you now need to do for every row to be repeated is to change its properties.  First select the row in the grouping pane:

Grouping pane in advanced mode

When you click on the (Static) row in the groupng pane, SSRS shows that it is selected in the main report designer. Keep an eye on this to check you've got the right row selected.

 

Now change its RepeatOnNewPage property:

RepeatOnNewPage property selected

Change the property shown to repeat the selected row on each new page.

 

The Final Result

The final result makes it all worthwhile - each page looks the same at the top:

Second page of repeat with repeating titles

The second page of the report has the same titles as the first!

 

But was it really meant to be this hard?

For an encore, read the companion blog on getting a page title to stay visible as you scroll down an SSRS report.

posted @   Reinhard_Hsu  阅读(198)  评论(0编辑  收藏  举报
编辑推荐:
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· 三行代码完成国际化适配,妙~啊~
· .NET Core 中如何实现缓存的预热?
历史上的今天:
2013-08-29 【Pro ASP.NET MVC 3 Framework】.学习笔记.6.SportsStore:导航
点击右上角即可分享
微信分享提示