TfrxDBDataSet refresh or clear cache
Hi,
I have application where i print from firebird 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 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?
- I have tried to delete the Report and create a new one each time.
- I tried to recreate the TfrxDBDataSet-Components.
- I tried to close-open the DataSets
Where is the cache and how can i clear it?
Here is my code to open the report:
TfrxReport *frxReport = new TfrxReport(this);
try
{
frxReport->LoadFromStream(s);
frxReport->ShowReport(true);
}
__finally
{
delete frxReport;
}
Thanks
I have application where i print from firebird 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 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?
- I have tried to delete the Report and create a new one each time.
- I tried to recreate the TfrxDBDataSet-Components.
- I tried to close-open the DataSets
Where is the cache and how can i clear it?
Here is my code to open the report:
TfrxReport *frxReport = new TfrxReport(this);
try
{
frxReport->LoadFromStream(s);
frxReport->ShowReport(true);
}
__finally
{
delete frxReport;
}
Thanks