我正在努力将我们的Crystal Reports版本从Crystal Reports XI升级到Crystal Reports 2011.我们有一个C#windows窗体应用程序,我们目前正在使用Visual Studio 2010.我已经安装了Crystal Reports for Visual Studio 2010.这更新了我的参考资料 . 我已经为.net framework 4.0安装了Crystal Reports Runtime引擎(我已尝试过32位和64位) .

在我们的应用程序中,我们使用报告查看表单来运行报告,该表单为水晶查看器提供路径和连接信息:

var crReportDocument = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
crReportDocument.Load(reportPath);
ReportUtilities.ApplyConnectionInfo(crReportDocument, _useReportServer);
crystalReportViewer1.ReportSource = crReportDocument;
crystalReportViewer1.Zoom(1);

当我们使用Crystal Reports XI发布当前应用程序时,我们可以将先决条件设置为“从与我的应用程序相同的位置下载先决条件” . 唯一的先决条件是.net 4框架和水晶报告运行时 . 我已将32位运行时msi和64位运行时msi移动到我要发布到的同一位置 . 如果我尝试使用这些设置发布,我会收到以下错误消息:

先决条件的安装位置尚未设置为“组件供应商的网站”,并且无法找到“SAP Crystal Reports Runtime Engine for .NET Framework”项中的“Crystal Reports for .NET Framework 4.0 \ CRRuntime_64bit_13_0_5.msi”文件在磁盘上 . 有关更多信息,请参阅帮助先决条件的安装位置尚未设置为“组件供应商的网站”,并且“SAP Crystal Reports Runtime Engine for .NET Framework”项目中的“Crystal Reports for .NET Framework 4.0 \ CRRuntime_32bit_13_0_5.msi”文件无法位于磁盘 . 有关更多信息,请参阅帮助无法发布,因为项目无法构建 .

如果我将先决条件设置更改为“从组件供应商的网站下载先决条件” . 我能够发表 .

在测试机器上,我首先运行了Crystal Reports Runtime(以前在此机器上安装了.Net Framework),然后运行了我们应用程序的setup.exe . setup.exe无法安装并提供此错误消息

无法安装或运行该应用程序 . 该应用程序要求首先在全局程序集缓存(GAC)中安装程序集CrystalDecisions.Enterprise.InfoStore版本10.5.3700.0 . 请联系您的系统管理员 .

我们以前从未在GAC中安装此文件 .

Am I missing a step to complete the upgrade?

Also if I am using Crystal Reports in this method in our application, do I need to do anything with the crystal reports viewer (I have seen downloads for this) or is that only if we are running it outside of the application?