?
Solved

C# InstallShield Crystal Reports

Posted on 2016-08-02
3
Medium Priority
?
33 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Among others, I monitor the Windows Installer zone and Installer zone. I find that many of the questions could be answered much more quickly if a Windows Installer verbose log were submitted with the question.   However, I do not always have t…
Monitor input from a computer is usually nothing special.  In this instance it prevented anyone from using the computer.  This was a preconfiguration that didn't work.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

752 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