开发者

WPF Crystal Report problem using Visual Studio 2008

开发者 https://www.devze.com 2023-02-23 16:49 出处:网络
I need to bind a List with a crystal report in my WPF application. Here is my code: CrystalReportViewer crystalReportViewer1 = new CrystalReportViewer开发者_如何学运维();

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消