在 fastreport 2.5 的版本里调用 fileexits 函数是没有问题的啊,
为什么在 fastreport 4.0 里调用就出错了呢?

解决方案 »

  1.   

    没有人遇到过这样的问题吗?我是这样做的,在fastreport4.0的设计界面中,我放了一个masterdata, 上面又放了一个 picture 控件
    然后在masterdata 的 onbeforeprint 事件里写代码:
    begin
      if fileexists('c:\a.pic') then
        picture.loadfromfile('c:\a.pic');
    end
    预览时提示找不到函数 fileexists , 但是我在fastreport2.5的版本里这样写可以的,
    为什么到fastreport4.0就不行了呢? 请大家伸出援助之手,这个问题困扰我好几天了???
      

  2.   

    使用Fastreport的UserFunction事件 
    将fileexists写在主程序中 然后在FR中调用   请去查下UserFunction的用法, 肯定能满足你的要求
      

  3.   

    http://www.c-xy.cn/news/news_212.htm  你可以参考这个网址 祝一切顺利 哇哈哈