报告不在我自己的计算机上执行

时间:2016-09-07 14:58:03

标签: c# .net crystal-reports

我的应用程序不能在任何计算机上运行,​​而是我自己的。当我从我的计算机上的bin文件夹中打开exe时,它会显示报告,我可以运行它没问题。但是,当我转到另一台计算机时,它会崩溃并显示此错误:

Problem Event Name:        CLR20r3
Problem Signature 01:      CrystalTest.exe    
Problem Signature 02:      1.0.0.0    
Problem Signature 03:      57d0272d    
Problem Signature 04:      CrystalDecisions.Shared    
Problem Signature 05:      13.0.17.2096
Problem Signature 06:      576134be
Problem Signature 07:      69d
Problem Signature 08:      1
Problem Signature 09:      System.TypeInitialization
OS Version:                6.1.7601.2.1.0.256.48
Locale ID:                 1033
Additional Information 1:  0a9e
Additional Information 2:  0a9e372d3b4ad19135b953a78882e789
Additional Information 3:  0a9e
Additional Information 4:  0a9e372d3b4ad19135b953a78882e789

我创建了一个新的C#窗体应用程序项目,将现有的Crystal Report添加为新项,在表单中添加了CrystalReportViewer,并添加了以下代码:

private void crystalReportViewer1_Load(object sender, EventArgs e) {
    ClinicLetter rpt = new ClinicLetter();
    crystalReportViewer1.ReportSource = rpt;
}

项目属性目标框架是4.5。我的电脑使用:

  • Windows 7
  • Visual Studio 2015
  • Crystal Reports XI第2版.NET 2005服务器
  • 用于.NET Framwork的SAP Crystal Reports运行时引擎(64位)
  • SAP Crysalt Reports,Microsoft Visual Studio版本
  • Crystal报表查看器2011 sp4

无法使用的计算机使用:

  • Windows 7
  • 用于.NET Framwork的SAP Crystal Reports运行时引擎(64位)
  • Crystal报表查看器2011 sp4
  • Microsoft .NET Framework 4.6.1

1 个答案:

答案 0 :(得分:0)

我想出了这个问题。我查看了Crystal Reports .NET框架的引用路径,应用程序使用的是32位文件夹目录。但计算机安装了64位。