Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

C# InstallShield Crystal Reports

Posted on 2016-08-02
3
Medium Priority
?
38 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
Vadim Rapp earned 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

636 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