HowTo Bind Crystal Reports to Entity Framework?

crystal-reports entity-framework

Question

How can one bind Crystal Reports to Entity Framework Entities?

I did find no workaround yet.

(And I have not enough points yet to vote on existing questions)

1
6
5/5/2009 12:11:37 PM

Popular Answer

As for me, I read below link

http://aspalliance.com/2049_Use_LINQ_to_Retrieve_Data_for_Your_Crystal_Reports.2

It tell me how to link EntityFramework and Crystal Report.

As for code behind ....

 protected void Page_Load(object sender, EventArgs e)
 {
        Report.CrystalReport1 _Rpt = new Report.CrystalReport1();            

        List<Test> list_Test = new List<Test>();
        using (tempdbEntities _tempdbEntities = new tempdbEntities()) {
            list_Test = _tempdbEntities.Tests.ToList();
        }

        _Rpt.SetDataSource(list_Test);
        CrystalReportViewer1.ReportSource = _Rpt;
        CrystalReportViewer1.RefreshReport();

}
4
1/7/2013 9:46:24 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow