使用 QuickReport 仅在最后一页打印

发布于 2024-10-06 06:27:26 字数 107 浏览 0 评论 0原文

这是另一个古老的编程语言问题,是否有人知道如何用Delphi 7和QuickReport仅在最后一页打印计算值?

我在谷歌上搜索了大约两个小时,但找不到任何有关如何使用此类报告的信息。

Here is another question of ancient programming languages, if anybody knows how to print a calculated value only in the last page with Delphi 7 and QuickReport?

I was googling about two hours and I can't find any information on how to use this kinda reports.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

过度放纵 2024-10-13 06:27:27

单击QuickReport,然后在Object Inspector 中展开Bands 属性。将 HasSummary 区域设置为 True。您可以在摘要带上使用 TQRExpr 组件,并利用它支持的任何功能来计算您的值,或者使用常规 TQRLabelTQRDBText组件并在其 OnPrint 事件中显示您手动计算的值 - 只需将“Value”参数设置为您想要在报告上显示的值即可。

正如 @A.Bouchez 所说,这不是古老的技术。 Delphi 仍然非常活跃并且发展强劲 - 请参阅有关新发布的 XE 版本的信息提供网址。如果你认为它是古老的,你应该使你自己的知识与时俱进。 :-)

Click on the QuickReport and then expand the Bands property in the Object Inspector. Set the HasSummary band to True. You can use a TQRExpr component on the summary band and utilize whatever it supports for functionality to calculate your value, or use a regular TQRLabel or TQRDBText component and display the value you calculate manually in it's OnPrint event - just set the 'Value' parameter to what you want to display on the report.

And as @A.Bouchez said, it's not ancient technology. Delphi is still very much alive and going strong - see the info on the newly released XE version at the URL provided. If you think it's ancient, you should bring your own knowledge up to date. :-)

救星 2024-10-13 06:27:27

也许在报告末尾添加一条带子?

我们这里不讨论考古学。 Delphi 仍然存在:Delphi XE 几周前刚刚推出。
所以这不是“又一个古代程序语言的问题”,而是“又一个古代程序的问题”……

Perhaps adding a band at the end of the report?

And we're not dealing about archeology here. Delphi is still alive: Delphi XE was just out weeks ago.
So this is not "another question of ancient programin' language", but "another question of ancient program"...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文