How to keep table footer together with details? Reportig Services (RDLC)

时间秒杀一切 提交于 2019-12-11 04:04:59

问题


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.

So it looks like

row-1
row-2
....
row-20
<< end-of-page >>
summary_row (footer)

This looks pretty bad what I would like to archive is:

row-1
row-2
....
<< end-of-page >>
row-19
row-20

summary_row (footer)

Basically would like to have (at least) one row together with summary on next page.

Any idea how to archive that ?


回答1:


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(Nothing)-1)/25) (from http://msdn.microsoft.com/en-us/library/ms157328(v=sql.90).aspx)



来源:https://stackoverflow.com/questions/5649550/how-to-keep-table-footer-together-with-details-reportig-services-rdlc

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