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

And*_*273 5 crystal-reports visual-studio

它似乎在我的开发机器或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 ---
Run Code Online (Sandbox Code Playgroud)

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

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

更新:

所以我发现水晶报告存在x64版本没有任何初始化程序的问题,因此尝试在程序中初始化它会导致错误.
我已经验证,如果我卸载x64版本,并安装x86 32位版本,该程序工作正常.我读过有些人只是在32位模式下运行程序,但无论出于何种原因,这对我来说都不起作用.

我暂时搁置了这个问题,希望有人知道如何让它初始化64位版本,因为这是自设置点击后自动安装的内容.

And*_*273 3

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

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