Page 1 of 1

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

Posted: Tue Sep 30, 2025 10:49 pm
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.

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

Posted: Wed Oct 01, 2025 6:01 pm
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.

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

Posted: Thu Oct 02, 2025 7:02 am
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.

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

Posted: Thu Oct 02, 2025 9:35 pm
by Lech Kulikowski
Hello,

Please check the SaveReportMode option:
https://www.stimulsoft.com/en/documenta ... report.htm

Thank you.