在Clickonce部署中以必备条件安装SAP Crystal Report [英] Install sap crystal report as prerequiste in clickonce deployment

查看:147
本文介绍了在Clickonce部署中以必备条件安装SAP Crystal Report的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用水晶报表的客户端WPF.现在,在客户端计算机中,我必须分别安装Crystal Report和该应用程序.是否可以通过应用安装将其附加?

我尝试将其添加为发布属性中的必需项,但由于它在.NET Framework 4.0的Crystal Reports文件夹下的本地计算机上找不到,因此在发布过程中会出现错误.

解决方案

这是我对此的看法:

步骤1:此处安装SAP Crystal运行时.确保下载正确版本的32位和64位MSI,在我的情况下为13.0.12,在您的情况下可能会有所不同,因此请确保在下载之前.

步骤2:下载后,将32位和64位MSI都放在sdk目录下.默认位置为: C:\ Program Files(x86)\ Microsoft SDKs \ Windows \ v8.1A \ Bootstrapper \ Packages \ Crystal Reports for .NET Framework 4.0

步骤3:转到发布项目的属性,选择适当的应用程序,选中SAP Crystal Reports Runtime Engine,然后从与我的应用程序相同的位置选择下载先决条件.

第4步::右键单击该项目并发布,您现在将看到一次单击的应用程序中包含了Crystal Report安装.

希望这会有所帮助.

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?

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.

解决方案

Here is my take on this:

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.

Step 2: Once download put the both 32 and 64 bit msi under sdk directory. Default location would be: C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\Bootstrapper\Packages\Crystal Reports for .NET Framework 4.0

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.

Step 4: Right click the project and publish, you will see now crystal report installation included in your once click app.

Hope this helps.

这篇关于在Clickonce部署中以必备条件安装SAP Crystal Report的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆