Gerald
Gerald

Reputation: 89

Crystal Reports RecordSelectionFormula is always empty string

This is really grasping at straws, I apologize.

We've got some legacy VB.Net code that has stopped working now in VS 2015.

myReportClass.RecordSelectionFormula = "{report.IdField} = 13"  

Now, after the assignment, RecordSelectionFormula is still an empty string and when the report runs, it no longer filters by that value.

I believe the report files were created in CR 2010. I've referenced a NuGet package in order to get things working in VS2015.

Has anyone else seen this? Thanks.

Upvotes: 0

Views: 535

Answers (1)

Gerald
Gerald

Reputation: 89

OK, after posting this I eventually wandered onto the SAP website and found a reference to this KBA

Essentially, you have to comment out two lines of generated code in the ReportViewer form designer. After doing this, the intellisense still reports that the value of the property is empty string, but the report does filter properly.

Upvotes: 1

Related Questions