Raj*_*ham 9 c# visual-studio-2010 crystal-reports-2008
我在VS 2010 sap crystalreports中遇到麻烦,使用c#制作一个Windows应用程序.
我使用以下代码得到以下错误:
CrystalReport1 cr1 = new CrystalReport1();
cr1.SetDataSource(dt1); //Error
Run Code Online (Sandbox Code Playgroud)
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\win64_x64\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified.
Lee*_* O. 17
尝试通过将useLegacyV2RuntimeActivationPolicy属性添加到.config文件来使用此解决方案
<startup useLegacyV2RuntimeActivationPolicy="true">
Run Code Online (Sandbox Code Playgroud)
<startup useLegacyV2RuntimeActivationPolicy="true" >
<supportedruntime version="v4.0" sku=".NETFramework,Version=v4.0" />
</startup>
Run Code Online (Sandbox Code Playgroud)
在app.config中添加此代码.