delphi中使用fastreport
想在delphi窗体中点击一个命令按钮,就能够执行fastreport的frxReport1GetValue事件
即:
procedure TForm2.frxReport1GetValue(const VarName: string; var Value: Variant);
  begin
    //被调用的事件过程
  end;貌似直接用:Form2.frxReport1GetValue(const VarName: string; var Value: Variant);或
            Form2.frxReport1GetValue(self); 或
            Form2.frxReport1GetValue(); 
都不行呀!!!!!!!!!!!!!

解决方案 »

  1.   

    我没有试过,但感觉应该和form一样,必须将form调入内存,才能调用其中的过程和函数。
      

  2.   

    frxReport1GetValue事件是如何触发的呢????
      

  3.   

    那有没有将
    1. 一个文本文件,大约含200个字符的txt文档内容,保存到一个变量里,然后删除txt文档。
    2. 点击一个按钮,把变量中的内容写到一个txt文档,内容与上一步删除的txt文档相同呢用TStringList、TFileStream、TStringStream可以实现吗,咋实现的呀??????