新装的fastreport4.3 之前用frxReport设计了一个报表 zj2.fr3
   后来在应用的时候 再使用frxReport组件就不能打开了 提示“canvas does not allow drawing”
   是怎么回事啊 ?  以前用老版本的fastreport就没出现过这种现象 是我那个操作不当造成的 还是版本的原因
   这样的问题要怎么解决呢???  

解决方案 »

  1.   

       我把delphi7卸载了 重新装了一遍 而且把fastreport也重装了 
       系统在安全模式下能打开已设计的报表  而在正常模式下还是报错“canvas does not allow drawing”
       是什么原因造成的 应该怎么解决啊?? 有没有人能帮帮我啊 ~~!!!!
      

  2.   

    提示不能重畫canvas!是不是調用了多線程,還是你的報表中放了一些圖,而未加入控件???認眞檢查一下!
    以下在國外網站找到的:
      What   does   the   error   message   'Canvas   does   not   allow   drawing'   mean?     
      A:      
      you   may   have   run   out   of   resources,   which   means   a   new   DC   cannot   be   
      allocated.   Usually   this   is   a   result   of   not   freeing   unused   DCs   or   other   
      objects   
        
      you   are   attempting   to   draw   to   an   device   context   that   is   not   yet   valid.   
      Such   as   in   the   create   constructor   of   a   component.   
        
      you   are   trying   to   draw   on   a   canvas   while   your   last   draw-operation   has   
      not   finished   yet.   In   this   case   you   can   use   Canvas.Lock   or   Canvas.TryLock   to   fix   it. 
      

  3.   


        我重新设计报表 在设计时放入richedit object 组件时 
        还是会报相同的错误  我在第一次设计的时候没要发生这样的情况 
        现在只要打开含有这个组件的报表也报错 设计也报错 这是什么问题呢 ?
        如果仅是打开时报错是未放入组件的问题 那为什么现在设计的时候也出错呢 ???
      

  4.   

       fastreport4.3 有错误 需要安装补丁 就可以正常使用了 
      

  5.   

    你把Delphi里的fastreport控件卸载了,重新手动安装一遍,或许问题就会解决啦!