Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
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
Posted
Updated 21-Apr-16 9:41am

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900