如何用细节让表尾在一起吗? Reportig服务(RDLC) [英] How to keep table footer together with details? Reportig Services (RDLC)
问题描述
我用的Tablix 控件来显示数据。也有的Tablix页脚对于一些摘要。
效果很好,除了一个场景:当最后一个Tablix行打印为最后再页(摘要)页脚移动到另一页。
I'm using Tablix control to display data. Have also tablix footer for some summaries.
Works well except one scenario: when last tablix row is printed as last on page then (summary) footer is moved to another page.
因此,它看起来像
行1
行2
....
行20
<<最终页面->>
summary_row(页脚)
row-1
row-2
....
row-20
<< end-of-page >>
summary_row (footer)
这看起来pretty的不好的东西,我想存档是:
This looks pretty bad what I would like to archive is:
行1
行2
....
&LT;&LT;最终页面->>
行19
行20
row-1
row-2
....
<< end-of-page >>
row-19
row-20
summary_row(页脚)
summary_row (footer)
基本上想有(至少)一行与总结下页。
Basically would like to have (at least) one row together with summary on next page.
不知道如何归档?
推荐答案
如果每行会占用空间相同数量的页面上,你可以计算出有多少行会适合页面(包括摘要),并然后把Tablix中进入设置分页符的组一组的前$ P $类似pssion一个列表对象:
If each row will take up the same amount of space on the page, you can calculate how many rows will fit on a page (including the summary), and then put the tablix into a list object set to page break on group with a group expression similar to:
= INT((RowNumber(没有)-1)/ 25) (从 http://msdn.microsoft.com/ EN-US /库/ ms157328(V = SQL.90)的.aspx )
=Int((RowNumber(Nothing)-1)/25) (from http://msdn.microsoft.com/en-us/library/ms157328(v=sql.90).aspx)
这篇关于如何用细节让表尾在一起吗? Reportig服务(RDLC)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!