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.
Designer: show custom component in File/Open and File/Save - SaveAs, instead of the normal Open/Save dialog.
-
- 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.
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.
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.
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:
But I've not found how to suppress the SaveAs dialog.
May you kindly help me?
Thank you.
Code: Select all
protected override void OnInitialized()
{
base.OnInitialized();
DesignerOptions = new StiBlazorDesignerOptions();
// Suppress the open file dialog
DesignerOptions.Appearance.ShowOpenDialog = false;
}
May you kindly help me?
Thank you.
-
- 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.
Hello,
Please check the SaveReportMode option:
https://www.stimulsoft.com/en/documenta ... report.htm
Thank you.
Please check the SaveReportMode option:
https://www.stimulsoft.com/en/documenta ... report.htm
Thank you.