Reset values os FastReport objects

edited January 2013 in FastReport 4.0
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

  • edited 4:45AM
    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?
    Could you give more details about the way you start running your report.
    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

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.