Crystal Reports XI: Losing selection formula?

Shane N

New member
Joined
Jun 28, 2006
Messages
4
Programming Experience
5-10
Hello, I've been fighting with this all day... I'm simply trying to import a report that has a selection formula, but when I set the report source to the file, the selection formula isn't set, so it pulls out way more data than it should.

This is literally all the code I'm using for this:
ReportViewer.ReportSource = "Reports/ReportTransactionSummaries.rpt"

ReportViewer is a CrystalReportViewer object.

Any help would be greatly appreciated! :)
 
Figured this issue out. I removed the CrystalReportViewer object from the form, and re-added it. Go figure.

However, the root of the issue lies in that we recently upgraded Crystal Reports from 9 to XI. In this process, I guess vb.net somehow retained the old library to build this control on the form instead of using the new references.

Maybe this will help someone, or maybe it was too unlikely of an event to affect anyone else. Either way, there is the solution.
 
Back
Top