Solved

C# InstallShield Crystal Reports

Posted on 2016-08-02
3
23 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

Suggested Solutions

Title # Comments Views Activity
Media.Imaging 1 18
Crystal reports vb.net 2 39
Sent email using Shared Mailbox from outlook in C# 5 21
Moving code from one TFS branch to another 3 25
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
If you don't know how to downgrade, my instructions below should be helpful.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

813 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

11 Experts available now in Live!

Get 1:1 Help Now