fastreport 合计相关
fastreport 合计 是先收集分析有没有写sum 之类的,所以如果是动态在其他事件里写 sum的话,是认不到的。
要在begin end 里事先创建出来。可以设置为不显示就可以
//查询有多少个码数 创建出来
with qry_ms do
begin
close;
sql.text := format(sql.text, [<scddj."scddh">]);
open;
if not isempty then
begin
first;
while not eof do
begin
with TfrxMemoView.Create(Footer2) do
begin
visible := false;
Text := '[SUM(<frx_dymx2."'+FieldByName('ms').asstring+'">,MasterData4)]';
end;
next;
end;
end;
end;

浙公网安备 33010602011771号