在报表头中显示共享变量(填充在子报表中) [英] Displaying a Shared Variable (populated in a subreport) in the Report Header

查看:71
本文介绍了在报表头中显示共享变量(填充在子报表中)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在尝试显示子报表中的详细信息。要做到这一点,我正在使用一个共享变量,以便报告和子报告都可以使用它。

我按照这些说明启动了我:
http://www.builderau.com。 au / strategy / architecture / soa / Crystal-Reports-three-formula-trick- / 0,339028264,320279915,00.htm

一切似乎都运转正常,但我需要在主报表页面上显示我的计数器,作为封面。当我尝试显示共享变量时,它显示0.如果我在页脚中显示变量,它会显示正确的数字。

它似乎是这样工作的,因为在Crystal中处理事物的顺序。标题在子报表之前呈现,因此此时变量为0.另一方面,页脚在子报表之后呈现,因此变量已填充并且正确显示。

我需要在Header上有这个变量,因为它是封面上的信息。你们知道一个解决方法吗?

谢谢!

Hello,

I'm trying to display a count of the details from a subreport. To do this, I'm using a Shared variable so that both the report and the subreport can get to it.

I followed these instructions that got me started:
http://www.builderau.com.au/strategy/architecture/soa/Crystal-Reports-three-formula-trick-/0,339028264,320279915,00.htm

Everything seems to be working ok, but I need to display my counter on the main Report Header, as a cover page. When I try to display the shared variable, it shows 0. If I display the variable in the footer, it displays the right number.

It seems to be working this way because of the order things get processed in Crystal. The header gets rendered before the subreport so at that point the variable is 0. On the other hand, the footer gets rendered after the subreport, so the variable has been populated and it gets displayed correctly.

I need to have this variable on the Header, as it's information going on a Cover Page. Do you guys know of a workaround?

Thanks!

推荐答案

你有没有尝试添加:
"whilereadingrecords"
在公式字段的顶部?
Did you try adding:
"whilereadingrecords"
at the top of the formula field?


这篇关于在报表头中显示共享变量(填充在子报表中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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