FastReport中国社区FastReport联系电话 联系电话:023-68661681

如何把变量添加到FastReport报表中?

来源:   发布时间:2016-08-08   浏览:7616次

问题描述:如何把变量添加到报表中?

解决方法:

with frxReport1 do

begin
with Variables do
begin
Category:=Add;
Category.Name := ' ' + '自定义变量1'; //注意!!第一个' '内是一个空格!!如果没有空格,不能正确添加分类
with Add do Name := ' ' + '自定义变量2'; //更简化的格式
AddVariable('自定义变量1', '变量11', QuotedStr('大写金额'));
AddVariable('自定义变量1', '变量12', QuotedStr('大写金额'));
AddVariable('自定义变量1', '变量13', QuotedStr('大写金额'));
AddVariable('自定义变量2', '变量21', 1880);
AddVariable('自定义变量2', '变量22', QuotedStr('大写金额'));
AddVariable('自定义变量2', '变量23', QuotedStr('大写金额'));
end;
end;


本站文章除注明转载外,均为本站原创或翻译
欢迎任何形式的转载,但请务必注明出处,尊重他人劳动成果
转载请注明:文章转载自:FastReport控件中文网 [https://www.fastreportcn.com/]
本文地址:https://www.fastreportcn.com/post/1171.html

联系我们
  • 重庆总部 023-68661681
购买
  • sales@evget.com
合作
  • business@evget.com


在线
客服
微信
QQ 电话
023-68661681
返回
顶部