Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8800

Crystal Reports Viewer Crashes in Windows Forms App

$
0
0

I am working on a Windows forms application (VB.NET 4.0, Visual Studio 2012, SAP Crystal Reports for Visual Studio 13.0.9.1312). The application is an updated version of an application that was developed using VB.NET 2.0 and Crystal Reports 2008. I'm seven months into the project and I've run into a problem with testing and the embeded reports:

 

Everything works fine on my development computer, runing the application from the IDE, but when I open a report using the Crystal Reports Viewer on a client computer (no Visual Studio, Crystal Reports 13.0.9 runtime installed) the entire application crashes. Reports that are sent to the printer directly work fine, but I cannot open the report in the Crystal Reports Viewer without crashing the app.

 

I'm a little panicked as the app has to go live this month and I can't preview any reports.

 

This is the code for the viewer form:

 

 

ClassfrmReportViewer

     Private ReportObject As CrystalDecisions.CrystalReports.Engine.ReportClass

 

     PublicSub PopForm(ByRef inReport As CrystalDecisions.CrystalReports.Engine.ReportClass)

 

               ReportObject = inReport

       CR_Viewer.ReportSource = ReportObject

 

     EndSub


     PrivateSub frmReportViewer_FormClosing(ByVal sender AsObject, ByVal e As System.Windows.Forms.FormClosingEventArgs) HandlesMe.FormClosing Me.Name)

    

       ReportObject.Close()


     EndSub

 

End Class

 

 

 

James Whitaker, B.Sc.

Senior Systems Analyst

I.T. Solutions, Niagara Region


Viewing all articles
Browse latest Browse all 8800

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>