PDA

View Full Version : خطا در گزارش سازی با crystal report



omidrahimi1391
یک شنبه 18 فروردین 1392, 19:05 عصر
با سلام
من از vs2012 استفاده می کنم که crystal report به صورت default در آن نصب نیست، بنابراین نرم افزار اضافه شدن crystal report را نصب کردم که در نتیجه crystal report به vs2012 اضافه شد. اما الان برای اجرا خطای زیرا می دهد:
Additional information: 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.

کدی که crystal report را فراخوانی می کند هم به صورت زیر نوشتم:

ReportDocument rd = new ReportDocument();
rd.FileName = "ReportSpace.rpt";
Form1 b = new Form1();
rd.SetDataSource(b.GetDataTable());
crystalReportViewer1.ReportSource = rd;
crystalReportViewer1.Show();
ممنون می شوم اگر کسی بتواند راهنمایی کند.