Link to home
Start Free TrialLog in
Avatar of viola123
viola123

asked on

How to compile crystal report?

hi, all,
i wonder how to compile a crystal report which designed in CR9.0?

thanks
viola
Avatar of frodoman
frodoman
Flag of United States of America image

Compile into what?

If you're working in Visual Studio, just open Solution Explorer and right click on your project.  Select Add Existing Item -> Crystal Report then browse to the report you want added.  Now click on the report itself in Solution Explorer (you'll see the .rpt file) and check the properties to make sure it is set to "Embedded Resource" (this is the default unless you've changed it).  

This will compile a report created outside of Visual Studio into your .exe file.  Is this what you're asking?
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
What is your main objective?  If it is to let users view reports without owning a Crystal license, consider one of the 3rd-party report viewers listed at: http://www.kenhamady.com/bookmarks.html

If the objective is to protect your intelectual property so that users can't open the report in Crystal and see or change how the report was designed, then one report viewer listed there provides the functionality of converting rpt files to protected rpz files (that can only be viewed by that viewer).

hth,
- Ido
Avatar of Mike McCracken
Mike McCracken

Glad I could help

mlmcc