remove "Edit page" button in the preview mode
Hi
i want to remove "Edit page" button in the preview mode because this button allows user to edit data. (FastReport .NET)
thanks in advance
i want to remove "Edit page" button in the preview mode because this button allows user to edit data. (FastReport .NET)
thanks in advance
This discussion has been closed.
Comments
i found the solution
FastReport.Utils.Config.PreviewSettings.Buttons = PreviewButtons.All & ~PreviewButtons.Edit;
Thank you, worked perfectly!
Looool
Hello!
The “Edit page” button in the preview window is controlled by the PreviewButtons.Edit flag. To prevent users from editing the content of a prepared report in preview mode, you can disable this flag either globally via Config.PreviewSettings.Buttons or locally for a specific instance of PreviewControl:
To preserve all other standard toolbar buttons, it is recommended to set this configuration before displaying the report (report.Show() / report.ShowPrepared())