问题描述
我有一个使用水晶报表的客户端 WPF.现在在客户端机器上,我必须分别安装水晶报告和应用程序.有没有办法将它附加到应用安装中?
I have a client WPF which uses crystal reports. For now in client machine I have to install separately the crystal reports and then the app. Is there a way to attach it with the app installation?
我尝试将此作为附加组件添加到发布属性中,但它在发布期间出现错误,因为它在 Crystal Reports for .NET Framework 4.0 文件夹下的本地计算机上找不到.
I tried to add this as a perquisite in publish properties but it gives error during publish as it can't find on the local machine under Crystal Reports for .NET Framework 4.0 folder.
推荐答案
这是我的看法:
第 1 步:从此处安装 SAP Crystal 运行时.确保您下载了正确版本的 32 位和 64 位 msi,在我的情况下是 13.0.12,在您的情况下可能会有所不同,所以在下载之前请确保.
Step 1: Install SAP crystal runtime from here. Make sure you download both 32 and 64 bit msi of correct version, in my case it was 13.0.12, in your case it could be different, so be sure before you download.
第 2 步: 下载后将 32 位和 64 位 msi 都放在 sdk 目录下.默认位置是:C:Program Files (x86)Microsoft SDKsWindowsv8.1ABootstrapperPackagesCrystal Reports for .NET Framework 4.0
Step 2: Once download put the both 32 and 64 bit msi under sdk directory. Default location would be: C:Program Files (x86)Microsoft SDKsWindowsv8.1ABootstrapperPackagesCrystal Reports for .NET Framework 4.0
第 3 步: 去发布项目的属性,选择 application perquisite,勾选 SAP Crystal Reports Runtime Engine,并选择与我的应用程序相同的位置下载先决条件.
Step 3: Go to publish properties of the project, select application perquisite, check mark SAP Crystal Reports Runtime Engine, and also choose download prerequisite from same location as my application.
第 4 步: 右键单击项目并发布,您现在将看到水晶报表安装包含在您的单击应用程序中.
Step 4: Right click the project and publish, you will see now crystal report installation included in your once click app.
希望这会有所帮助.
这篇关于在 clickonce 部署中安装 sap 水晶报告作为先决条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!