visual-studio - Windows 7上的Crystal Reports Runtime for VS引发错误

标签 visual-studio crystal-reports

在我的开发计算机或Windows XP测试计算机上,它似乎运行良好,但是在Windows 7测试计算机上却遇到了问题。

在那之后,我得到一个正常的崩溃错误:

************** Exception Text **************
System.InvalidOperationException: An error occurred creating the form. See
Exception.InnerException for details.  The error is: The type initializer for
'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. ---> 
System.TypeInitializationException: The type initializer for 
'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. ---> 
CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: An error has occurred while 
attempting to load the Crystal Reports runtime.

Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.

Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required.  Please go to http://www.businessobjects.com/support for more information.
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.CheckForCrystalReportsRuntime()
   at CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor()
   --- End of inner exception stack trace ---
   at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()
   at CrystalDecisions.CrystalReports.Engine.ReportClass..ctor()
   at Processing.LogTag..ctor()
   at Processing.frmPrint.InitializeComponent()
   at Processing.frmPrint..ctor()
   --- End of inner exception stack trace ---

他们的网站当然是寻找任何东西的噩梦...

注意:它是Windows 7 64位,但是我已经在32位模式下运行该程序。

更新:

因此,我发现Crystal报表存在一个问题,即x64版本没有任何初始化程序,因此尝试在程序中对其进行初始化会导致错误。
我已经验证了,如果我卸载了x64版本并安装了x86 32位版本,则该程序可以正常运行。我读过一些人成功以32位模式运行该程序,但是由于某种原因,这对我不起作用。

我将问题悬而未决,希望有人能找到如何初始化64位版本的方法,因为那是从单击一次设置中自动安装的内容。

最佳答案

如果程序也在x64模式下运行,则适用于Visual Studio 2010版本13.0.1(x64)的Crystal Reports的最新版本将起作用。这意味着可以将VS设置为针对任何CPU进行编译。

http://www.sdn.sap.com/irj/boc/support?rid=/webcontent/uuid/d01fdad8-44e5-2d10-61ad-9d2d4158f3a8

关于visual-studio - Windows 7上的Crystal Reports Runtime for VS引发错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6460264/

相关文章:

c# - 在单个 Oracle 命令 C# 中执行多个插入表命令

javascript - Visual Studio 2015 扩展将 JavaScript 文件中的字符串 HTML 处理为 HTML 编辑

visual-studio - VS2012 - VS2013 - VS2015 - VS2017 - VS2019 的 Crystal 报表

java - 如何用JAVA获取 Crystal 报表参数名称

crystal-reports - Crystal Reports - "A string is required here"公式错误

mysql - 显示从站状态,其中值 = x

c# - Visual Studio : What's the correct way to reference resources across projects?

git - Visual Studio 项目的 .gitignore 不起作用

c# - 如何使用 Crystal Report Visual Studio 2013 在条形图中添加 2 个系列

c# - CS0246 : The type or namespace name 'CrystalDecisions' could not be found