Introduction

Crystal Reports often cause problems in .NET deployment package. Errors like “Can't find keycode32.dll” are likely to occur if the license key is not provided during creation of deployment package. To include license information, use the following procedure.

Create a Sample Deployment project.

Type the name of your project in the Name: Field “Setup” as in our example.

Now click the Application Folder from the left Pane (“File System on the Target Machine”) , then right click anywhere on the right yet empty pane and select Add > File from shortcut menu.

Go to the bin directory of your desired .NET application (which is already built) and select the *.exe file. This will add necessary references of all the assemblies required.

Now go to Solution Explorer and right click on Setup and select Add > Merge Module…

From Add modules dialog box, select the first four files namely Crystal_Database_Access2003.msm, Crystal_Database_Access2003_enu.msm, Crystal_Managed2003.msm and Crystal_regwiz2003.msm and click Open.

Now again from Solution Explorer, right click on crystal_regwiz2003.msm and select properties. Set license key value under MergeModuleProperties > License key as “AAP50-GS00000-U7000RN”.

You can find license key information through the About box.

To see how to go to Help menu of Visual Studio 2003, click About Microsoft Development Environment and locate Crystal Reports for Visual Studio.NET.

Share

About the Author

My name is Muhammad Shahbaz Saleem. I am an enterprise application developer and a strong advocate of re-usability and cross-platform development. I am also an admirer of interactive UI technologies and love to play with AJAX, CSS, JQuery etc. Since 2005, I have been involved in solving architectural problems and evolving complex requirements into simple and robust solutions for desktop, mobile and the Web.

As a person, I am opinionated and always love a good debate; I have a lot to say about software engineering, design patterns, service-oriented architecture and mobile computing.

You can email me at mshahbazsaleem[at]gmail[dot]com
OR
If you like to talk here is my s@k@y@p@e id m[dot]shahbaz[dot]saleem

Hello,
I have a problem with crystal reports.
According to the report parameter it is possible that the report does not find data.In this case an empty report viewer window is displayed.
I want to avoid that.
Is there a way to check the report if it find data or not?

Sure, you can use suppress property to hide sections when there is no data.
The Suppress property hides a section when you run the report. This property can be applied absolutely, or conditionally using a formula. This is useful for writing form letters. For example, in a form letter, you might create two Details sections: one to suppress when sales are over $X and one to suppress when sales are under $X.
Right click the section you want to hide and select "Suppress (No Drill Down)"

Hi there i hope you can assist me on this well i have developed a file management software in VB 2005 which uses crystal reports 10 whenever i deploy the application i got an error that some assemblies were missing which i went back and added them manually.These are the assemblies names
CrystalDecisions.CrystalReports.Engine.dll
CrystalDecisions.ReportSource.dll
CrystalDecisions.Shared.dll
CrystalDecisions.Windows.Forms.dll
But then after this i ran the application and now it shuts down anytime i run the reports.
It may be simple but am totally stuck please help

I followed the steps and didn't have any build errors, was able to deploy my app to another computer, however....when I execute my report, I get an error message from the Crystal Report Windows Forms Viewr: 'Failed to open the connection. C:\DOCUME~1\lauaa\LOCALS~1\Temp\[38479E12-93E0-4F6e-g96a-1016EA9163E7].rpt'

I know it finds the report, because the report prompts the user for the parameters. My report tables are located in a password protected SQL server and I use the following code to login:Dim crReportDocument As EnctFormClinic
Dim crDatabase As Database
Dim crTables As Tables
Dim crTable As Table
Dim crTableLogOnInfo As TableLogOnInfo
Dim crConnectionInfo As ConnectionInfo

Hello, I have an asp.net project that contains a particular crystal report (done with Crystal Reports for Visual Studio .NET 2003 AAP50-GS00000-U7000RN).
This web project was deployed in one computer, copied to another computers and registered in their respective IISs, it works good and shows the information appropriately in these stations(running IIS 5.1 on WinXP sp2 and 6.0 win2003), except in one computer running IIS 5.1 with WinXP Pro sp2(the report only shows the first half from left to right side, and the report itself is adjusting the width to the information shown). I debugged the application, the way it works is with a Push method, the dataset is loaded successfully, the code looks like this:
SettlementRDS ds = CreateDataSet();/*loads a dataset into object ds, that inherits from System.Data.DataSet*/
Unified oReport = new Unified();
oReport.SetDataSource(ds);
Note: This is just to mention the way I bind the information into the report.
What I guess about this issue is the possibility of a missing configuration regarding crystal report in iis for this particular computer; i have reviewed as many things as i think without results.
if any of you guys can help me with this, i will be greatly happy.

I also had problems with crystal reports deployment in the past, and i did exactly what you have said. Great.
But you could said where obtain these msm file merge modules case i haven`t them yet (google it), and you can swap the sentences: "Go to the bin directory of your desired dot.net application (which is already build) and select the .exe file. This will add necessary references of all the assemblies required" and "Now Go to solution explorer and right click on Setup and select Add > Merge Module…" - they are wrong placed.

brother thank you very much for correction.
As far as merge modules are concerned
you can find them under program files > common files
if you still can't , then check your visual studio installation options.
thank you once again