如何使用LINQ + CRYSTAL REPORT报告生成 [英] How to Report Generate using LINQ+CRYSTAL REPORT

查看:76
本文介绍了如何使用LINQ + CRYSTAL REPORT报告生成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一些用于创建报告的示例Web链接
使用Crystal Report和LINQ.

ReportDocument rd = new ReportDocument();
rd.Load(Server.MapPath("CrystalReport1.rpt")));
rd.Refresh();
IEnumerable< dinnernow.business.data.crystalreport>详细信息= m.ReportGenerator_RestaurantTable1();
rd.SetDataSource(details);

//这里发生错误.有什么错误.
CrystalReportViewer1.ReportSource = rd;

CrystalReportViewer1.DataBind();


作者:ur mohan

i need some example web link for creating report
using crystal report and LINQ.

ReportDocument rd=new ReportDocument ();
rd.Load(Server.MapPath("CrystalReport1.rpt"));
rd.Refresh();
IEnumerable<dinnernow.business.data.crystalreport> details = m.ReportGenerator_RestaurantTable1();
rd.SetDataSource(details);

//here error occured. what is the error.
CrystalReportViewer1.ReportSource = rd;

CrystalReportViewer1.DataBind();


by ur mohan

推荐答案

看看这个

http: //ramezanpour.net/post/2008/09/10/How-to-use-LINQ-to-SQL-for-binding-data-in-CrystalReports-2008.aspx [ http://stackoverflow.com/questions/97465/crystal-reports-and-linq [ ^ ]
Have a look at this

http://ramezanpour.net/post/2008/09/10/How-to-use-LINQ-to-SQL-for-binding-data-in-CrystalReports-2008.aspx[^]


http://stackoverflow.com/questions/97465/crystal-reports-and-linq[^]


这篇关于如何使用LINQ + CRYSTAL REPORT报告生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆