水晶报表

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

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


 

antony
:antony1029@163.com
:http://antony1029.cnblogs.com
原文地址:https://www.cnblogs.com/antony1029/p/1373811.html