PDA

View Full Version : مشکل در ایتفاده از کریستال ریپورت



king_it23
دوشنبه 30 بهمن 1391, 18:03 عصر
من یه برنامه با C#‎‎ و sql server نوشتم حالا می خوام ازش گزارش گیری کنم
تنظیمات مربوط به کریستال راانجام دادم . برای اینکه بخوام در کریستال ویوور نشون بدم از دستورات زیر استفاده کزدم ولی error می ده

private void crystalReportViewer1_Load(object sender, EventArgs e)
{
con.Open();
com = new SqlCommand("select * from tbl_Service", con);
da = new SqlDataAdapter(com);
DataTable dt = new DataTable();
da.Fill(dt);
ReportDocument rd = new ReportDocument();
rd.FileName = "cartreport.rpt";
rd.SetDataSource(dt.Select());
crystalReportViewer1.ReportSource = rd;
crystalReportViewer1.Show();


}

king_it23
دوشنبه 30 بهمن 1391, 19:12 عصر
error شم اینه
Could not load file or assembly 'file:///C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified.

یک صفحه No sorce Available باز می کنه

swallow.pa
پنج شنبه 10 اسفند 1391, 12:53 عصر
يك احتمال آيا فايل app.config رو براي دات نت فريم ورك 4 تنظيم كردي يا نه