Solved

C# InstallShield Crystal Reports

Posted on 2016-08-02
3
25 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)
ID: 41739740
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
ID: 41740746
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
ID: 41765033
Absndoned
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

821 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