save change when edit in preview mode
Hi:
How to Know When a Report Has Changed in Preview Mode and edit by user in this preview , i load report from firebird database, bat in preview mothe, i need if the user change the previe i need save the changes .
thanks
juan
Comments
How to Know When a Report Has Changed in Preview Mode and edit by user in this preview , i load report from firebird database, bat in preview mothe, i need if the user change the previe i need save the changes .
Hello!
When you open a report in designer mode, if it is changed, then the OnSaveReport event occurs in TfrxDesigner, in which this report is edited, when the designer is closed. You can use it to write a report template to the database.
If the user is editing a prepared report, then this situation cannot be tracked at the moment. However, you can save the prepared report, for example, to a stream before and after editing, and then compare these streams. You can use the OnPreview and OnClosePrevies TfrxReport events to do this