本文介绍了生成水晶报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我已经编写了以下代码,但它给出了错误:
找不到类型或名称空间IAPEntities.
Hi All,
I have written the following code but it gives the error:
the type or namespace IAPEntities could not be found.
protected void btngenerate_Click(object sender, EventArgs e)
{
ReportDocument report = new ReportDocument();
report.Load(Server.MapPath("CrystalReport1.rpt"));
using (IAPEntities db = new IAPEntities())
{
report.SetDataSource(from u in db.attendance1 select new { u.type, u.present, u.absent, u.working, u.month});
}
CrystalReportViewer1.ReportSource = report;
}
请帮助我.
在此先感谢.
Please help me in this.
Thanks in Advance.
推荐答案
这篇关于生成水晶报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!