Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dataset-driven report randomly repeats multiple times.

Status
Not open for further replies.

ApoxyB

Programmer
May 28, 2009
1
US
I have a billing application that uses the Crystal Report viewer tool to display reports that are generated using a strongly typed DataSet object which is generated by the application code.

Every so often, I'll generate my DataSet, associate it with a report object, and set the viewer to rendering the report. Somewhere along the line, the report is generated over and over again, continually appending to the final product. It repeats a random number of times, usually not exceeding 30 or so. In the end, 1-page reports become 30 pages of the same 1-page report, repeated over and over again.

There seems to be no rhyme or reason to this behavior. I can't reliably reproduce it. On a couple of occasions I've been able to break in the Visual Studio debugger when I've noticed reports going crazy, and the break occurs in the crystal reports code. I can't remember exactly if it broke in the CrystalDecisions.CrystalReports.Engine.ReportClass.SetDataSource call or in the CrystalReportViewer.ReportSource property set operation, but it was one of those two. I was able to check my DataSet and confirm that it was normal.

This happens maybe 5%-10% of the time in production. Is it something that's been observed by others? If not, does anyone have suggestions for good search terms I might use? All I can really come up with are variations on "repeating report problem" but that's obviously not giving me anything useful.

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top