antony--异域空间
性格左右命运,气度影响格局!

 

怎么样在一个页面里显示多个报表 而且不分页

R1201301   rptSonekiList   =   new   R1201301();  
  rptSonekiList.SetDataSource(   ds.Tables["authors_1"]   );  
   
  Sections   crSections   =   rptSonekiList.ReportDefinition.Sections   ;  
   
  for   (int   i   =0   ;   i   <   crSections.Count;   i++)  
  {  
  ReportObjects   objects   =   crSections[i].ReportObjects;    
  for   (int   j=0;   j   <   objects.Count;   j++)  
  {  
  if   (   objects[j].Kind   ==   ReportObjectKind.SubreportObject   )  
  {  
  SubreportObject   crSubreportObject   =   (SubreportObject)   objects[j];  
   
  //open   the   subreport   object  
  ReportDocument   crSubreportDocument   =   crSubreportObject.OpenSubreport(crSubreportObject.SubreportName);  
   
  //set   the   database   and   tables   objects   to   work   with   the   subreport  
  if   (crSubreportObject.Name   =="Subreport1")  
  {  
  crSubreportDocument.SetDataSource(   ds.Tables[   "outKin"   ]   );  
  }  
  //crDatabase.Tables  
  }  
  }  
  }  
  我用这个循环邦定子报表,不知道你那个行不行   

 

http://topic.csdn.net/t/20030923/16/2291453.html

http://blog.csdn.net/haibodotnet/category/13325.aspx?PageNumber=2


 

posted on 2009-01-11 22:02  antony.net  阅读(2546)  评论(0编辑  收藏  举报