比如说:设计器中有个combobox1
想获取外面窗体中的数据: combobox1.items.add([wwTable1.Fields.Fields[o].DisplayName]);
这样行不行呢?另;fastreport设计器没有 invoke code的功能吗?期盼回复~~谢谢
想获取外面窗体中的数据: combobox1.items.add([wwTable1.Fields.Fields[o].DisplayName]);
这样行不行呢?另;fastreport设计器没有 invoke code的功能吗?期盼回复~~谢谢
fastreport.findobject('memoname').memo.text:=combobox.text;
在你的TfrMemoView里写上['combobox1']在你显示报表的代码中写:
frVariables['combobox1'] := combobox1.text;
frReport1.showReport;
第3种方法:
在你的TfrMemoView里写上['combobox1']报表事件
procedure TForm1.frReport1GetValue(const ParName: String;
var ParValue: Variant);
begin
if AnsiCompareText(ParName, 'combobox1') = 0 then
ParValue := combobox1.text;
end;
第4种方法:
用数据字典,方法其实和用FR的全局变量类似,就不多说了。再下去变‘茴香豆’了
:)
有空去我的blogblog.csdn.net/loveghb
可问题没解决阿 我是问 怎么传递到 fastreport里面的代码区 不是报表page
:(