Report / Database refresh
Hi,
I have application where I print from MS-Access database report using Fast Report.
When I print first time, the data is OK, if I close the report, then change something in the data and click again to print, the report always shows the old data (first time), if I close everything and run it again, the data is OK.
I checked if the data was saved in the database or not, it is, I think it's something related to cashing or refreshing of data.
Is there is any way I force Fast Report to reconnect again to the database and get the recent data?
Thanks,
I have application where I print from MS-Access database report using Fast Report.
When I print first time, the data is OK, if I close the report, then change something in the data and click again to print, the report always shows the old data (first time), if I close everything and run it again, the data is OK.
I checked if the data was saved in the database or not, it is, I think it's something related to cashing or refreshing of data.
Is there is any way I force Fast Report to reconnect again to the database and get the recent data?
Thanks,
Comments
Do you use application datasource (using report.RegisterData() call), or add a new datasource into the report (via "Data|Add Data Source..." menu)?
I create DB from Fast Report (via "Data|Add Data Source..." menu)?
using (Report report = new Report())
{
report.Load(...);
report.RegisterData(...);
report.Show();
}
I created new instance of a report each time when I show it, now the data is up to date with the report.
Thank you very much,