【问题标题】:Crystal Reports Problem with .net 4.net 4 的水晶报表问题
【发布时间】:2011-08-25 14:23:39
【问题描述】:

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

" 错误 5 找不到类型或命名空间名称“CrystalDecisions”(是否缺少 using 指令或程序集引用?) C:\Users\aligoglos\Documents\Visual Studio 2010\Projects\WPF\ReportTest\报告测试\CrystalReport1.cs 14 11 报告测试"

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

谢谢大家。

【问题讨论】:

  • 你的环境是什么 wpf 或 win forms?

标签: .net crystal-reports


【解决方案1】:

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

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

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

我从这里的 Crystal Reports 上的 PDF 中获得了这些信息:

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

我希望这会有所帮助。

【讨论】:

    猜你喜欢
    • 2012-03-31
    • 2010-09-22
    • 2010-12-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多