水晶报表的setDataSource错误 [英] Crystal reports error in SetDataSource

查看:310
本文介绍了水晶报表的setDataSource错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有在VS 2010 SAP水晶报表的麻烦,使用C#进行Windows应用程序



我收到以下错误用下面的代码:

  CrystalReport1 CR1 =新CrystalReport1(); 
cr1.SetDataSource(DT1); //错误



无法加载文件或程序集文件:/// C:\\ \\Program文件(x86)\SAP BusinessObjects\Crystal报告用于.NET Framework 4.0\Common\SAP的BusinessObjects Enterprise XI 4.0\win64_x64\dotnet1\crdb_adoplus.dll或它的一个依赖。该系统找不到指定的文件


解决方案

尝试使用的加入useLegacyV2RuntimeActivationPolicy属性的config文件


$ b本
解决方案$ b

 <启动useLegacyV2RuntimeActivationPolicy =真正的> 


I am having trouble in VS 2010 sap crystalreports, using c# to make a windows application.

I get the following error with the following code:

 CrystalReport1 cr1 = new CrystalReport1();
 cr1.SetDataSource(dt1); //Error 

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.

解决方案

Try using this solution by adding the useLegacyV2RuntimeActivationPolicy attribute to your .config file

<startup useLegacyV2RuntimeActivationPolicy="true">

这篇关于水晶报表的setDataSource错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆