Solved

C# InstallShield Crystal Reports

Posted on 2016-08-02
3
20 Views
Last Modified: 2016-08-22
I developed a WinForms application that utilizes Crystal Reports for reporting.  I'm using InstallShield for deployment of the application.  I developed the application with the following structure.

MyApp.sln
--MyAppProj
--ReportProj

My App is the Gui Interface which allows the user to select data from the database via checkboxes.  After the user is finished their selection they will go to a form to print the report or preview the report.  The functionality is then passed to ReportProj where the reports reside.

The issue that I'm having is that when I create the deployment with Installshield I am receiving an error that the loading of the report is failing.

I have determined that the issue is that the application can't find the report.  I've added message box for troubleshooting.  There is no path being returned and I'm working on fixing that issue.

My questions are:
How does the application access the reports?  I don't see the reports.  
Are the reports part of the build from InstallShield?
Do I have to deploy the ".rpt" files also?  How would I do this.

Thanks
0
Comment
Question by:CipherIS
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
Vadim Rapp earned 500 total points (awarded by participants)
Comment Utility
In your solution explorer, specify "copy to output directory" = true for all files, so they become part of the build. Then include them in the installation. If this helps, you can then remove them one by one and see which one was the culprit.

"the application can't find the report" - this depends on how it actually initiates the report. I'm not familiar with the object model of Crystal Reports (the reason is in the next paragraph), but generally, if the code has a statement that, say, loads the template of the report, then, naturally, the file with that template must be present. You can run Process Monitor and monitor what file your application is trying to load, and where it's looking.

More generally speaking, both Crystal Reports (in larger degree) and Installshield ( in smaller degree) had been two major sources of programmers' problems for decades. Google "crystal reports hate" for very extensive details, and note the span of years.
0
 
LVL 1

Author Comment

by:CipherIS
Comment Utility
I figured out how to include the reports in InstallShield.  This is what I did.  On the Application Files Section I did the following.

Program Files
-- Project Name (folder)
   --  AppName (folder)
        --App [InstallDir]
   --  ReportEngine (folder)
       --  Reports (folder)

I copied all the .rpt files in the Reports folder

When I build and install the above structure is created and the RPT files exist.  Still working on other issues.
0
 
LVL 40

Expert Comment

by:Vadim Rapp
Comment Utility
Absndoned
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
asp.net mvc5 3 35
C# Problem Solving Execerscise 5 39
Code works but how can I download the file? 20 44
Create XML 5 30
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now