Skip to Content
0

CrystalReportViewer Freezing On Report Load (Visual Studio 2013)

Dec 13, 2016 at 12:18 AM

153

avatar image

Hello,

I've got a very basic report that I am trying to load in my WinForms app (targeting .NET Framework 4.0, x86) and the Crystal Reports Viewer is freezing on me while displaying the "Please wait while the document is processing" spin-wheel message.

Note that the wheel stops spinning and it does in fact seem to "freeze". I am bringing up the form that displays the viewer using ShowDialog() from my calling object and after the form freezes I am able to go back and use the calling form.

I've tried removing and re-adding the Crystal DLLs, various variations of the code to show the viewer and the form, loading the report statically from the VS Form Designer, nothing has worked.

Also of note is that the Report loads fine when I load the rpt file in the Report Viewer object from the Visual Studio form designer, but it will still freeze when I run my app.

I've also tried loading different reports. The test report I'm using now consists of nothing but a "Test Report" label in the Page Header section (no data-set or database access).

rptviewerfreeze.png

Edit: I'm using CR For VS 2010 (version 13.0.18), which seems to be the latest.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

5 Answers

Dell Stinnett-Christy Dec 13, 2016 at 02:23 PM
1

Is the freeze happening when you run the app through Visual Studio or is it after you've deployed the application?

How are you loading a report into the viewer? How are you setting the database credentials for the report? Would you please post the code that you're using?

Thanks!

-Dell

Share
10 |10000 characters needed characters left characters exceeded
Don Williams
Dec 14, 2016 at 10:26 PM
1

Hi Luis,

How did you add the CR assemblies to your project? From the GAC ( .NET tab ) or by browsing? Should use the .NET tab.

Which viewer are you using from the tool bar?

Does the viewer look like this:

Don


viewer.png (16.9 kB)
Share
10 |10000 characters needed characters left characters exceeded
Luis Rizo Dec 13, 2016 at 02:47 PM
0

Hi Dell,

Thanks for the reply.

To answer your questions:

  • The freeze happens when running from VS and from the deployed app
  • I've tried loading the report both programmatically and through statically through the Win Forms designer and the behavior is the same
  • There are no DB credentials in the report, it is literally just a label displaying "Test Report"
  • Code below (this is the FormLoad event handler in the Win Form that houses the Crystal Report Viewer):
    Public Sub FormLoad(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load       
        Dim rpt As New testReport()        
        Me.CrystalViewer.ReportSource = rpt
    End Sub
Share
10 |10000 characters needed characters left characters exceeded
Luis Rizo Dec 16, 2016 at 02:46 PM
0

Hi Don,

Thanks for the reply. I actually didn't even add the assemblies manually, once I dropped in the Crystal Report Viewer unto my Win Form from the Designer, VS automatically added the relevant CR DLLs:

And yeah, that's what my form looks like:


rptform.png (12.0 kB)
dlls.png (3.4 kB)
Share
10 |10000 characters needed characters left characters exceeded
Don Williams
Mar 20, 2017 at 04:43 PM
0

Use Debugdiag and see what it's reporting on app crash.

Share
10 |10000 characters needed characters left characters exceeded