使用 QuickReport 仅在最后一页打印
这是另一个古老的编程语言问题,是否有人知道如何用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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
单击
QuickReport
,然后在Object Inspector
中展开Bands
属性。将HasSummary
区域设置为 True。您可以在摘要带上使用TQRExpr
组件,并利用它支持的任何功能来计算您的值,或者使用常规TQRLabel
或TQRDBText
组件并在其OnPrint
事件中显示您手动计算的值 - 只需将“Value”参数设置为您想要在报告上显示的值即可。正如 @A.Bouchez 所说,这不是古老的技术。 Delphi 仍然非常活跃并且发展强劲 - 请参阅有关新发布的 XE 版本的信息提供网址。如果你认为它是古老的,你应该使你自己的知识与时俱进。 :-)
Click on the
QuickReport
and then expand theBands
property in theObject Inspector
. Set theHasSummary
band to True. You can use aTQRExpr
component on the summary band and utilize whatever it supports for functionality to calculate your value, or use a regularTQRLabel
orTQRDBText
component and display the value you calculate manually in it'sOnPrint
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. :-)
也许在报告末尾添加一条带子?
我们这里不讨论考古学。 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"...