Crystal Reports Problem with .net 4(.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:UsersaligoglosDocumentsVisual Studio 2010ProjectsWPFReportTest报告测试CrystalReport1.cs 14 11 报告测试"
" Error 5 The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?) C:UsersaligoglosDocumentsVisual Studio 2010ProjectsWPFReportTestReportTestCrystalReport1.cs 14 11 ReportTest "
我为 Visual Studio 2010 安装了 Crystal Reports,但我的错误仍未解决.
I installed Crystal Reports for Visual Studio 2010, but my error is still unresolved.
谢谢大家.
推荐答案
如果您有 SAP Crystal Reports,Visual Studio 2010 版本,您需要执行以下操作:
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
我希望这会有所帮助.
这篇关于.net 4 的水晶报表问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:.net 4 的水晶报表问题
基础教程推荐
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- 全局 ASAX - 获取服务器名称 2022-01-01
