xtrreport fill 空数据问题
代码如下
printDataset dataset= new printDataset();
report1 rpt = new report1();
var adp = new ReportData.DAdapters.PrintAdapter();
DateTime beginDate = dateTimePicker1.Value.Date;
DateTime endDate = dateTimePicker2.Value.Date;
adp.FillBy(dataset.PrintInfo, beginDate, endDate);
rpt.DataSource = dataset;
rpt.DataMember = "PrintInfo";
rpt.DataAdapter = adp;
prtControl.PrintingSystem = rpt.PrintingSystem;
var _barManager1 = new PrintBarManager();
_barManager1.Form = prtControl;
_barManager1.Initialize(prtControl);;
rpt.CreateDocument();
红色代码部分,如果我选择的beginData,endDate时间段内没有数据
则报表会把整个数据源的数据显示出来。而我的本意是显示空报表
求解决办法 --------------------编程问答-------------------- 没人知道吗 --------------------编程问答-------------------- 还真没人知道,结贴给分都给不了
补充:.NET技术 , C#