
Data don't refresh in report (with DataSet)
Hello,
I'm trying to create a report with the version of Crystal Report included in
Visual Studio.NET.
I design my report using data from a view.
At run time, I get the new data with a Dataset and I call the SetDataSource
method of the report..
The data displayed in the report preview are not up to date. They are like
they was at design time.
I tried to use this code to refresh data :
crReport.Database.Tables.Reset()
crReport.ReportOptions.EnableSaveDataWithReport = False
crReport.Database.Tables(0).SetDataSource(MyDS)
CrystalReportViewer1.ReportSource = crReport
But it doesn't work.
What's wrong ?
Please, help.
Thank you,
Chris