Designer: show custom component in File/Open and File/Save - SaveAs, instead of the normal Open/Save dialog.

Stimulsoft Reports.BLAZOR discussion
Post Reply
F1Aic
Posts: 2
Joined: Tue Sep 30, 2025 10:37 pm

Designer: show custom component in File/Open and File/Save - SaveAs, instead of the normal Open/Save dialog.

Post by F1Aic »

Good evening.

In the designer, when the user selects "File / Open" I want to show a custom component containing a list from which the user can select the template name to open. Also in "Save" and "SaveAs" I want to show a custom component which asks the template name to save. This is needed because our templates are saved in the database, not in the file system. So, I need to know how to suppress in the designer the normal Open/Save dialog and use a custom dialog created by me so I can manage the open/save of the templates saved in the database.

Thank you.
Lech Kulikowski
Posts: 7404
Joined: Tue Mar 20, 2018 5:34 am

Re: Designer: show custom component in File/Open and File/Save - SaveAs, instead of the normal Open/Save dialog.

Post by Lech Kulikowski »

Hello,

You can use the OnSaveReport/OnOpenReport event to save/open your reports as you need
https://www.stimulsoft.com/en/documenta ... events.htm

Thank you.
F1Aic
Posts: 2
Joined: Tue Sep 30, 2025 10:37 pm

Re: Designer: show custom component in File/Open and File/Save - SaveAs, instead of the normal Open/Save dialog.

Post by F1Aic »

Thank you. Now I need to suppress the StimulReport "Open/SaveAs" dialogs, to substitute them with my custom dialogs. I've found how to suppress the StimulReport "Open" dialog:

Code: Select all

protected override void OnInitialized()
{
    base.OnInitialized();
    DesignerOptions = new StiBlazorDesignerOptions();
    // Suppress the open file dialog
    DesignerOptions.Appearance.ShowOpenDialog = false;
}
But I've not found how to suppress the SaveAs dialog.

May you kindly help me?

Thank you.
Post Reply