PDA

View Full Version : سوال: خطا در مشاهده گزارش در استودیوی 2010



moeinih
سه شنبه 05 اردیبهشت 1391, 15:41 عصر
با سلام
من دراستودیوی 2010 کریستال ریپورت 13 رو نصب کردم یعنی در واقع این سه برنامه رو :
Crystal Reports 2010 Support Pack 13.0.1
SAP Crystal Reports 13.0 for Visual Studio 2010
SAP Crystal Reports runtime engine for .NET Framework 4 (32-bit)
و برای مشاهده یک گزارش کد زیرو نوشتم ولی خطا میده :



DataSet ds = new DataSet();
ReportDocument rd = new ReportDocument();
rd.FileName = "rptdarmaninosakh.rpt";
ds = c.fil("select fname,lname,reason,type_bimeh,bimeh_no,datee,price from tbl_nobatdehi", "tbl_nobatdehi");
rd.SetDataSource(ds.Tables[0]);
crystalReportViewer1.ReportSource = rd;
crystalReportViewer1.Show();


از خطایی که میده عکس گرفتم ولی آپلود نشد متن خطا اینه:
file load exception was unhandeled
mixed mode assembly is build against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information
make sure that the file is a .Net Framework assembly
و هیچ خطایی رو کدهای برنامه نمیده
کمکم کنین خواهش می کنم