RDLC tablix group footer as page footer

别来无恙 提交于 2019-12-11 09:53:08

问题


I'm trying to create a report for printing of checks/payment confirmation. The check itself is at the top of the page, shows detail in the middle (1-N records), and includes additional text which is fixed at the bottom of the page. The text at the bottom contains data associated with the check itself.

I attempted to create a tablix, using a group header for the check itself, and the detail for the individual line detail, but haven't been able to align the tablix footer to the page bottom.

When attempting to use the page footer section, I cannot access my dataset.

I don't think I'm the first person to attempt similar functionality, but I cannot seem to find any suggestions. Any suggestions would be greatly appreciated.


回答1:


The Page Footer is the necessary location to achieve absolute page bottom positioning, but requires a secondary step to access the data from the current data.

The footer is able to access Report Items, but not the dataset, which in my situation required the addition of a hidden field to the main body. The Page Footer could then reference that hidden field for it's value.

Object 1 / Tablix

Name:  FieldRequiredByFooter
Value: DataSetProperty

Object 2 / Page Footer

Name:  FooterField
Expression: =ReportItems!FieldRequiredByFooter.Value

If your page contains a listing of data, rather than a single item, the expression needs to be modified similar to

=First(ReportItems!FieldRequiredByFooter.Value)

Additional information at http://msdn.microsoft.com/en-us/library/ms252093(v=vs.90).aspx



来源:https://stackoverflow.com/questions/11454646/rdlc-tablix-group-footer-as-page-footer

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