I need to bind a List with a crystal report in my WPF application. Here is my code:
CrystalReportViewer crystalReportViewer1 = new CrystalReportViewer开发者_如何学运维();
doctorCrystalReportObj.SetDataSource(appointmentManagerObj.GetDoctorList());
crystalReportViewer1.ReportSource = doctorCrystalReportObj;
host.Child = crystalReportViewer1;
Report is generated. But no data found. Am I missing something? In windows forms application, there is an attribute AutoDataBind="true". Is there anything similar in WPF Crystal Report?
精彩评论