cancel
Showing results for 
Search instead for 
Did you mean: 

CrystalReportViewer Freezing On Report Load (Visual Studio 2013)

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

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

Answers (5)

Answers (5)

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

DellSC
Active Contributor

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

kierenbrown
Explorer
0 Kudos

i know many years since this topic was active, but have been trying to diagnose the exact same issue for the last day or so.

spent hours rebuilding reports, forms and connections from scratch, trying to work out why it is just hanging.

because it just hung, there were no dumps to diagnose

for me it came down to the size of the form that had the crystalreportviewer control.

as part of my attempts to resolve i loaded my report using another crystalreportviewer control on a different form

it worked!

so i then tried to resize the form to better display my report and it immediately started hanging again

changed form size back and it was fine

so for me the issue was down to the size of the form\crystalreportviewer control

bizarre!

Former Member
0 Kudos

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:

Former Member
0 Kudos

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