大家好,关于ReportDocument的问题!
我做了一个报表,是在WINFORM下的,想动态输出查询的内容到报表中,故想动态绑定数据源。我是这样操作的:
ReportDocument doc = new ReportDocument();
doc.ReportSource(Application.StartupPath + "//Reports//Report1.rpt");
doc.SetDataSource(frmSpfgq.ds);
//这个doc根本就没有ReportSource方法,可是我在网上查有这个方法啊,请问各位高手,我应该引用什么才能有doc.ReportSource这个方法呢?谢谢大家了!