cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Report Viewer freezes while setting report source (crystal runtimes 64bit only)

Former Member
0 Kudos

Hi All,

within my C# application I am using the crystal reports viewer.

There is one report that isn't showing anything when loading to the viewer. The viewer element is loading, but I can only see the known grey background of the viewer.

It seems that the viewer freezes while setting the report source:

ReportViewer.ReportSource = repObj;

This only happens in a 64bit environment, whereas showing the report in a 32bit environment works without a problem.

I am using the current runtimes (version 13.0.20).

Is there someone who could give me a hint, what problem this may be?

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Christopher,

Thanks for the reports. There is something seriously wrong with all of your subreports. I'm running in 32 bit mode.

In my main test app I get the subreport info on load and it is generating these errors:

Please wait, attempting to get SQL Statement, requires being logged on first
SubreportName: sub_read_druckPlanErl
Error in : Unknown error 0x80040200
SubreportName: sub_bud_ppl-assigned
Error in : Unspecified error
SubreportName: sub_bud_erl-txt
Error in : Unspecified error
SubreportName: sub_bud-erl-pic
Error in : Unspecified error
SubreportName: sub_ppl_info
Error in : Unspecified error
SubreportName: sub_ppl_kenn_mess
Error in : Unspecified error
SubreportName: sub_ppl_erl-txt
Error in : Unspecified error
SubreportName: sub_ppl-erl-pic
Error in : Unspecified error
SubreportName: sub_ppl-finanzen
Error in : Unspecified error
SubreportName: sub_mass-txt
Error in : Unspecified error
SubreportName: sub_planst_erl-txt
Error in : Unspecified error

I then try to open the report in CR Designer and it opens with data bu then I set location to the XML file and it starts to refresh and then CRD just closes.

I did notice the report was created in CR 10.2, what I wanted to do was remove all of the subreports and see if that works by adding them back in one at a time but I can't get that far.

It appears your report is corrupted, possibly due to the subreports, I suggest you use a current version of the Full version of CR Designer and try to fix the report. Open the report, go to each subreport and save it. Delete them all and then add them back in.

So it fails in 32 bit but does throw an exception trying to load the subreports in 64 bit mode.

Don

Answers (4)

Answers (4)

Former Member
0 Kudos

Found it!
Never use (shared) variables in group selection formula in a subreport!
CR 14.2.4.2410 crashes, 64-Bit application using runtime 13.0.xxx freezes.

I got rid of the group selection formulas in "sub_read_ppl-info", "sub_ppl-erl-pic", "sub_ppl_info" and "sub_bud-erl-pic": works fine!

Thorsten

0 Kudos

On the download WIKI there is an app I wrote:

https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads

Has Parameters in the name, load the report in it and on the right there is a drop down list box to get various parts and use the Formula one, it checks the formula, if there are any errors you need to fix them.

If no errors can you send me your report? I'll see if I can find a cause. You can't attach the report you need to use DropBox or something like that.

Don

Former Member
0 Kudos

Thanks for the tool. It gave me errors in some formulas, so I fixed them.

The tool now shows no errors, but the report still doesn't work. I send you two reports with saved data:

  • ppl06.0.rpt => original report
  • ppl06.3.rpt => modified version (formulas) with no errors in your tool
  • the datasource as an xml file

Direct download link to zip archive with all files.

0 Kudos

Windows or WEB app?

Try a dummy report with no DB connection and just a text object "Hello World" in it.

What happens? IF that works then check your report, something is not right with it.

How long did you wait?

Don

Former Member
0 Kudos

It is a windows application.

The dummy report worked.

Problem occurs when using the 64bit runtimes (tested on windows 8.1 and 10 - windows 7 works).

Opening the report with the crystal designer is no problem, too. Maybe that is because the designer runs in 32bit.

Anyway, compiling my application as a 32bit application and running it shows the report without a problem.

I have waited more than an hour.

ido_millet
Active Contributor
0 Kudos

Can you replicate the problem even if you load the report with saved data?
If so, please upload the rpt.