【发布时间】:2021-10-01 21:07:08
【问题描述】:
我在 Delphi 10.4 中使用 FastReport。在第一页我需要告诉用户报告的页数。当然,这个数字不是固定的——它可以是任何一个:
这份报告有 12 页。
这份报告有 23 页。
此报告有 1 页。
这是我的报告结构:在第 1 页有字段mmoTermoAberturaDescricao,这是我需要显示页数的地方。
这是我设置文本对象显示文本的代码:
procedure ShowReport(frxReport: TfrxReport);
var
AText: string;
begin
AText := 'This report has 12 pages...';
TfrxMemoView(frxReport.FindComponent('mmoTermoAberturaDescricao')).Text := AText;
frxReport.ShowReport();
end;
但是我怎样才能显示实际的页数呢?它必须是某种我需要访问的变量...
【问题讨论】:
标签: delphi fastreport