Crystal Reports问题.net 4 [英] Crystal Reports Problem with .net 4

查看:414
本文介绍了Crystal Reports问题.net 4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我之前在.net 3.5中使用过Crystal Reports,但是从升级到.Net 4.0后,我面临这个错误:

I've worked with Crystal Reports in .net 3.5 before, but since upgrading to .Net 4.0 I'm facing this error:

错误5类型或命名空间名称'CrystalDecisions'(您是否缺少using指令或程序集引用?)C:\Users\aligoglos\Documents\Visual Studio 2010\Projects\WPF\ReportTest\ ReportTest\CrystalReport1.cs 14 11 ReportTest

" Error 5 The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?) C:\Users\aligoglos\Documents\Visual Studio 2010\Projects\WPF\ReportTest\ReportTest\CrystalReport1.cs 14 11 ReportTest "

我为Visual Studio 2010安装了Crystal Reports,但我的错误仍未解决。

I installed Crystal Reports for Visual Studio 2010, but my error is still unresolved.

感谢所有。

推荐答案

如果您有Visual Studio 2010的SAP Crystal Reports版本,您必须执行以下操作:

If you have SAP Crystal Reports, version for Visual Studio 2010, here's what you have to do:

在Microsoft .NET Framework 4.0中使用ADO.NET时,必须将以下设置添加到应用程序的配置文件中:

When using ADO.NET with the Microsoft .NET Framework 4.0, the following setting must be added to the application’s configuration file:

<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
</configuration>

我从Crystal Reports的PDF中获取了这些信息:

I got this information from a PDF on Crystal Reports from here:

http://www.sdn.sap.com/irj/sdn/index?rid=/library/uuid/e06b8953-a62b-2d10-38b9-ca71f747e2b1& utm_source = crvs2010& utm_medium = lp& utm_campaign = supp_platforms

我希望这有助于。

这篇关于Crystal Reports问题.net 4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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