on 12-13-2016 12:18 AM
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).
Edit: I'm using CR For VS 2010 (version 13.0.18), which seems to be the latest.
Use Debugdiag and see what it's reporting on app crash.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dell,
Thanks for the reply.
To answer your questions:
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.