PDA

View Full Version : مشکل در کریستال ریپورت و C# 2010



shahriar_1363
دوشنبه 14 فروردین 1396, 10:27 صبح
با سلام خدمت دوستان

من میخوام از کریستال ریپورت استفاده کنم ولی با ارور زیر رو میده

Could not load file or assembly 'file:///C:\Program Files (x86)\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.

وقتی مسیر ارور فوق رو بررسی کردم دیدم فولدر dotnet1 در سیستم من بصورت dotnet نوشته شده که اسم فولدر رو به dotnet1 تغییر دادم که با ارور زیر میده

Could not load file or assembly 'crdb_adoplus, Version=9.1.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)

البته کدی muosa1992 گفته در قسمت app.config اضافه کنیم انجام دادم که 4 تا مسیج زیر رو برام میده

Message 1 Could not find schema information for the attribute 'useLegacyV2RuntimeActivationPolicy'.

Message 2 Could not find schema information for the element 'supportedRuntime'.

Message 3 Could not find schema information for the attribute 'version'.

Message 4 Could not find schema information for the attribute 'sku'.


من پس از جستجوی فراوان تو اینترنت دیدم نتونستم راه حلی پیدا کنم کدهای متفاوتی رو امتحان کردم باید بگم که از visual studio 2010 استفاده می کنم تو زیر نمونه کدی که برای لود کردن تو crystalReportViewer1 نوشتم

ReportDocument rcoc = new ReportDocument();
DataSet1 ds1 = new DataSet1();
rcoc.Load(@"c:\users\tabatabae\documents\visual studio 2010\Projects\crystal3\crystal3\CrystalReport1.rpt ");
rcoc.SetDataSource(ds1);
crystalReportViewer1.ReportSource = rcoc;
لطفا در این مورد راهنماییم کنین که نیاز شدید به این پروژه دارم
باتشکر