English 中文(简体)
FastReport:ReportTitle摘要
原标题:FastReport: Summary on ReportTitle

我有一份包含以下部分的报告:

ReportTitle
ColumnHeader
MasterData
ColumnFooter
ReportSummary

如何在ReportTitle上显示MasterData中字段的总和?

最佳回答

我可以看到两种可能的方式:

  • 通过报表变量:

    1. 单独计算总数。

    2. 使用报表变量(可能还有TfrxReport.OnGetValue事件)将总数传递给报表。

  • 通过报告的<code>DoublePass</code>属性:

    1. TfrxReport.EngineOptions.DoublePass属性设置为True

    2. 计算报告脚本中的总数,并在第一次传递时将其存储到脚本变量中

    3. 根据第二遍的变量填写备忘录。

    在脚本中使用Engine.FinalPass来检测它是否是最后一次(第二次)通过。

问题回答
  1. Define a variable for sumatory
  2. Asign sumatory to variable on first pass of report
  3. Show variable on second pass

或者,如果总结是查询的结果,则获取此结果并显示它





相关问题
determining the character set to use

my delphi 2009 app has a basic translation system that uses GNUGetText. i had used some win API calls to prepare the fonts. i thought it was working correctly until recently when someone from Malta ...

Help with strange Delphi 5 IDE problems

Ok, I m going nuts here. For the last (almost) four years, I ve been putting up with some extremely bad behavior from my Delphi 5 IDE. Problems include: Seemingly random errors in coride50.bpl ...

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How convert string to integer in Oxygene

In Delphi, there is a function StrToInt() that converts a string to an integer value; there is also IntToStr(), which does the reverse. These functions doesn t appear to be part of Oxygene, and I can ...

Quick padding of a string in Delphi

I was trying to speed up a certain routine in an application, and my profiler, AQTime, identified one method in particular as a bottleneck. The method has been with us for years, and is part of a "...

热门标签