程序加载水晶报表
重点就是doc.load
ReportDocument doc = new ReportDocument();
TreeEntityList sources = new TreeEntityList ();
if (PackgeList != null)
{
PackgeList.ForEach(i => sources.Add(i));
}
soureCount = sources.Count;
doc.Load(AppDomain.CurrentDomain.BaseDirectory + @"Class\CRGasPackge.rpt");
doc.SetDataSource(sources)