delphi2007 教程

delphi2007 教程

首页 新随笔 联系 聚合 管理
  1013 Posts :: 0 Stories :: 28 Comments :: 0 Trackbacks
fastreport分组脚本问题 Delphi / Windows SDK/API
http://www.delphi2007.net/DelphiBase/html/delphi_20061205174746279.html
 
   
  现有一数据表如下:  
  a1         大连     234  
  a2         旅顺     567  
  a2         北京     213  
  a3         天津     987  
  我想分组为如下表:  
  -------------  
    大连     234  
  ------------  
        a2  
  -------------  
    旅顺     567  
    北京     213  
  ----------------  
              小计     780  
  ----------------  
    天津     987  
  ----------------  
   
  如果没有分组头,脚本还是比较好写的,在主数据项中写脚本即可  
      if   [LINE#]>1   then    
      begin  
          GroupFooter.Visible:=True;  
      end   else    
      begin  
          GroupFooter.Visible:=False;  
      end;        
  如果有分组头,就比较难下手了。  
  为何运行出错,提示出错']'expected  
     
   
   
   
   
   
   
       
 

up

up

up

up

posted on 2009-04-22 10:44 delphi2007 阅读(599) 评论(0)  编辑 收藏 引用
只有注册用户登录后才能发表评论。