RDLC tablix 组页脚作为页脚 [英] RDLC tablix group footer as page footer

查看:29
本文介绍了RDLC tablix 组页脚作为页脚的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建用于打印支票/付款确认的报告.检查本身位于页面顶部,在中间显示详细信息(1-N 条记录),并包含固定在页面底部的附加文本.底部的文本包含与支票本身相关的数据.

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.

我尝试创建一个 tablix,使用检查本身的组标题和单个行详细信息的详细信息,但无法将 tablix 页脚与页面底部对齐.

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.

推荐答案

Page Footer 是实现绝对页面底部定位的必要位置,但需要第二步从当前数据中访问数据.

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.

对象 1/Tablix

Name:  FieldRequiredByFooter
Value: DataSetProperty

对象 2/页脚

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)

其他信息在http://msdn.microsoft.com/en-us/library/ms252093(v=vs.90).aspx

这篇关于RDLC tablix 组页脚作为页脚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆