Refreshing the report at runtime from the preview is very similar to using the AutoSearch feature. Once your data has been changed in your database, be sure your datasets are active, then reset the Report and the Report.Engine in that order. Then you can call RegenerateReport and the new data should show up. Something like the following...
Comments
Try calling Report.Reset after you update your dataset.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
TppReport(MYViewer.Report).reset;
MyViewer.RegenerateReport;
and it still not re-fetching the new data.
thanks
Refreshing the report at runtime from the preview is very similar to using
the AutoSearch feature. Once your data has been changed in your database,
be sure your datasets are active, then reset the Report and the
Report.Engine in that order. Then you can call RegenerateReport and the new
data should show up. Something like the following...
ppReport1.Reset;
ppReport1.Engine.Reset;
TppViewer(ppReport1.PreviewForm.Viewer).RegenerateReport;
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com