I am developing in VB 2008 and Crystal Reports 2008.
When I go to display a report I get extraneous data on the report.
If I go to display the report a second time, I get the correct information.
The code that I am using is:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Report As New crStandings
Report.SetDatabaseLogon(SQLuser, SQLpw)
Report.DataDefinition.FormulaFields(
"Season").Text = txtSeason.Text
Report.DataDefinition.FormulaFields(
"WKNumber").Text = txtWeek.Text
Report.Refresh()
crv1.ReportSource = Report
End Sub
I have never had this problem in any other version of CR.