如何创建一个具有Crystal报表前提条件的.NET安装项目? [英] How to create a .NET setup project with crystal report prerequisite?

查看:188
本文介绍了如何创建一个具有Crystal报表前提条件的.NET安装项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在.net中使用过一个桌面应用程序,它使用水晶报告生成pdf / ms字的报告。然而,我现在试图部署这个应用程序与视觉工作室设置项目。现在,找到一种以某种方式捆绑水晶报表组件的方法,以便他们也可以自动安装在没有安装水晶报表的PC上。

I have worked on a desktop application in .net and it uses crystal report for generating report in pdf/ms word. However, I am now trying to deploying this app with visual studio setup project. Now, finding a way to bundle the crystal report assemblies in some way so that they can also install automatically on a pc where crystal report isn't installed. How can I achieve this please?

推荐答案

在您的程序文件夹中名为Microsoft Visual Studio 9.0 \Crystal Reports \CRRedist\IA64的文件夹。在那里你会发现一个可再分发包。

There is a folder called Microsoft Visual Studio 9.0\Crystal Reports\CRRedist\IA64 in your Programs folder. There you will find a redistributable package. Just add this file to your setup project - user defined actions - and install it.

编辑:正如您所提到的setupProject CustomActions只允许exe / dll文件

edit: As you mentioned setupProject CustomActions only allows exe/dll files

我找到了另一个解决方案。希望这些满足您的需求。

I found another solution. Hope this ones satisfies your needs.

向setupProject添加mergeModul(右键单击setupProject的解决方案资源管理器,添加mergeModul)。一个名为C:\Program Files(x86)\Common Files\Merge Modules的文件夹应该会自动显示。在那里你可能会找到一个名为CrystallReportsRedistxxx.msm的文件。

Add a mergeModul to your setupProject (right-click solution explorer on setupProject, add mergeModul). A folder called C:\Program Files (x86)\Common Files\Merge Modules should automatically show up. There you may find a file called CrystallReportsRedistxxx.msm. Add this to your project and it should install too.

要为您的版本找到合适的MergeModul,请查看: BusinessObjects_CrystallReports

To find the right MergeModul for your version have a look at: BusinessObjects_CrystallReports

将MergeModul添加到setupProjects中: SetupMergeModul

Adding MergeModul to setupProjects look at: SetupMergeModul

使用什么样的CrystalReport包,看看: MS CrystalReport I MS CrystalReport II

What kind of CrystalReport package to use, look at: MS CrystalReport I and MS CrystalReport II

hth

这篇关于如何创建一个具有Crystal报表前提条件的.NET安装项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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