当我们制作Windows应用程序的安装程序时,如何在应用程序exe文件中添加水晶报告,如应用程序exe中添加的Windows窗体 [英] How to add crystal reports in application exe file like windows forms added in application exe when we make installer of windows application

查看:98
本文介绍了当我们制作Windows应用程序的安装程序时,如何在应用程序exe文件中添加水晶报告,如应用程序exe中添加的Windows窗体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Visual Studio 2005上制作Windows应用程序的安装程序时在应用程序exe文件中添加水晶报表。



像在windows文件中编译exe文件但水晶报告添加到单独的文件夹S~M~E~R但出于安全考虑,我不想在SMER文件夹中单独添加报告。



我有什么试过:



当我将.rpt文件的Build Action更改为像Windows Forms Build Action和Build Installer一样进行编译时,它会产生错误。



意外字符''

名称空间不直接包含字段或方法等成员

I want to add crystal reports in application exe file when make installer of windows application on Visual Studio 2005.

Like windows forms compile in exe file but crystal reports added in separate folder S~M~E~R But I don't want to add reports in SMER folder separate for security reasons.

What I have tried:

When I change the Build Action of .rpt file to compile like Windows Forms Build Action and Build Installer, it's creating error.

Unexpected character ''
namespace does not directly contain members such as fields or methods

推荐答案

试试这个,

在解决方案资源管理器中添加你的水晶报告文件。

然后点击水晶报告文件,在属性中选择Build Action中的Embedded Resource。 br />


但是从我的观点来看,你不应该用水晶报告文件构建exe,因为e如果你想更新它,那么你必须重新开始整个项目。

这就是我的想法。
Try this,
In solution explorer add your crystal report file.
then click on crystal report file and in properties select "Embedded Resource" from Build Action.

But from my point of view, you should not build exe with crystal report file, because if you want to update it then that time you have to rebuild your whole project again.
It's just what I think.


这篇关于当我们制作Windows应用程序的安装程序时,如何在应用程序exe文件中添加水晶报告,如应用程序exe中添加的Windows窗体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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