螞蟻空間

螞蟻空間

导航

VS2010 RDLC 设置表的重复标题行(在每页中显示标题行) Repeat Header And Visible Fixed Header Table

VS2010 RDLC 设置表的重复标题行(在每页中显示标题行)

Repeat Header And Visible Fixed Header Table 


这两天有一个RDLC的交叉报表在做,遇到一个GROUP 的ROW HEADER需要在每页显示。

在Tablix Properties中的General - Row Headers

勾选 Repeate header rows on each page及Keep Header visible while scrolling

结果没有用,无论勾选Row或Column的属性都是一样。查了好多资料,有说直接修改RDLC的源文件,结果弄了好久这个方法好像不太适用。

有一个比较简单说法是对的,结果按这个方法找了好久 

1.       In the grouping pane, make sure to turn on advanced mode (click on the small black down arrow on the far right of the grouping pane)

2.       Select the corresponding (Static) item in the row group hierarchy
3.       In the properties grid, set RepeatOnNewPage to true

 这个方法是有效的,不过说得比较简单。

把详细的说明转贴在下面,免得自已忘了

原文地址:http://blogs.msdn.com/b/robertbruckner/archive/2008/10/13/repeat-header-and-visible-fixed-header-table.aspx

 

 

You selected "Repeat header rows on each page" or "Keep header rows visible while scrolling" in the tablix properties dialog, but it doesn't seem to work as expected?  You might want to try the following four steps if you are using a "table"-style layout:
1.in the grouping pane, click on the small triangle and select "Advanced Mode" to show static members:
2.verify that you have the properties grid turned on (in BI Development Studio use F4, in Report Builder go to the "View" tab and select "Properties")
3.select the corresponding (static) item in the row group hierarchy
4.in the properties grid:
- set KeepWithGroup to After
- set RepeatOnNewPage to true for repeating headers
- set FixedData to true for keeping headers visible
Please read on if you are interested in more details and ever wondered about the meaning of double-dashed lines on the design surface.  In short, double-dashed lines show the row group, column group, corner, and tablix body areas of a data region.  In the "matrix"-style example shown below, the yellow area represents the corner of the tablix, the light blue areas are row group headers, dark blue areas denote column group headers.  The settings under "Row Headers" and "Column Headers" in the tablix properties dialog only apply to the row and column group areas (i.e. the blue areas on the left / above the double dashed lines). 
If you have a "table"-style layout however, then the row/column group areas are often empty as you are using "headerless" table-style groupings.  In that case, you have to set the properties as explained above to make entire static members (rows / columns) repeat / visible.

posted on 2011-08-25 14:50  螞蟻  阅读(2104)  评论(2编辑  收藏  举报