Reset values os FastReport objects
Hello! Lots of times I need to change some data from my report in runtime (some strings or some queries) using the form that contains it and everytime I need to make a procedure that resets their values. My ask is: Does the FastReport has some function or property that resets the report to the original state automatically when the preview is closed, for example?
Comments
Do you load it from a file or from a database or in any other way.
If you use first two methods then IMO the report just loaded is always in a state you made it in Designer.
If you other way then consider such an order:
- Save your report (maybe from your compiled exe) to a file (TfrxReport.SaveToFile method),
- Load this report from the file and run it,
- All changes made by user will be overwitten when you repeat steps 1 and 2.
Regrads
Mick