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

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.