想知道是否有任何对RDLC有丰富经验的人可以给我一个如何设置它的线索。
所以目前我的报告设置如下:
标题
表格开始
行
That repeats at the start of every page
Here I want to add the work Remark but I need it to just display once and take full page but also have the above Row still repeat on every page but putting it as a header is not an option
Group1
Prints info based off of an account and repeats until it has gone through all accounts
表结束
页脚
在每个页面开头重复的表和行之间,我想添加分页符。我尝试的所有东西都没有正常工作(将行调整为页面大小,在组1顶部添加一个矩形并设置分页符并在矩形上方的另一行添加单词Remark ...备注显示分页后)
对于某些似乎完全过于简单的想法开始耗尽。我的措辞可能有些偏差请告诉我是否有更多的说明会有所帮助。
基本上应该是这样的:
标题页面
报告标题和类型
说明:
页脚Page1
标题第2页
报告标题和类型
的Item1
的SubItem1
项目2
Subitem2
页脚第2页
标题页面
报告标题和类型
项目3
Subitem3
等等,所以Forth
页脚Page3
答案 0 :(得分:0)
这就是我设置你所描述的报告的方式,并且应该提供想要的结果。
标题页
报告标题1
This should be a TextBox which you fill by parameter, this is only for the first Title on the first page
备注:
Again use one or multiple TextBoxes filling it by parameter as it shouldn't be repeated.
矩形 - 开始
using a List element here on which you group. You could set the size of the rectangle so it takes the space of a single page, this way it will definitely break even if two items would fit on a single page. If the content exceeds the rectangle's size then it will simply grow and continue on the next page to break correctly again for the next element. But if you want multiple items on a page if possible, just make the rectangle wrap exactly around the content (and not stretch an entire page). For both situation you need to make sure the
Keep contents together on a single page, if possible
and
{{ 1}}Add a page break after
报告标题#
are checked, this will add a page-break after the Remarks.
This is a TextBox but not from a parameter but from the datasource(/set) based on the grouped element that you're displaying. If you want the title to be repeated when the item exceeds the page's size, just set the
RepeatWith
项目#
property to the element below it, being a Tablix for example.
SubItem#
This is any component, probably a Table (tablix) but this could also be another List (rectangle).
矩形 - 结束
页脚页