Rewrite SaveButton function
Rewrite SaveButton function
Hi
I'm using Stimulsoft Reports for the first time. I need to rewrite function when save button is clicked or to hide this buton. Can you please help me? I have tried something like <WpfDesign:StiWpfDesignerControl ShowMainMenu="False" /> in xaml, but it doesn't work. Can you help me please?
Thank you.
I'm using Stimulsoft Reports for the first time. I need to rewrite function when save button is clicked or to hide this buton. Can you please help me? I have tried something like <WpfDesign:StiWpfDesignerControl ShowMainMenu="False" /> in xaml, but it doesn't work. Can you help me please?
Thank you.
Re: Rewrite SaveButton function
Hello,
Please try to use the following event
StiOptions.Engine.GlobalEvents.SavingReportInDesigner += ;
if need to hide:
StiOptions.Designer.MainMenu.ShowFileReportSave = false;
Thank you.
Please try to use the following event
StiOptions.Engine.GlobalEvents.SavingReportInDesigner += ;
if need to hide:
StiOptions.Designer.MainMenu.ShowFileReportSave = false;
Thank you.
Re: Rewrite SaveButton function
Hello,
thank you the command " StiOptions.Engine.GlobalEvents.SavingReportInDesigner += " has worked, so thank you very mych. But " StiOptions.Designer.MainMenu.ShowFileReportSave = false; " doesn't work. So can you help me with that please?
I have this in xaml <WpfDesign:StiWpfDesignerControl Name="StiDesigner"/>
after window is loaded i call
private void Loaded(object sender, System.Windows.RoutedEventArgs e)
{
var model = (ReportingViewModel)ViewModel;
StiDesigner.Report = model.StiReport;
}
Where I should write ShowFileReportSave = false ? I have tried in Loaded function and in constructor but the Savebutton is still showing.
Thank you
thank you the command " StiOptions.Engine.GlobalEvents.SavingReportInDesigner += " has worked, so thank you very mych. But " StiOptions.Designer.MainMenu.ShowFileReportSave = false; " doesn't work. So can you help me with that please?
I have this in xaml <WpfDesign:StiWpfDesignerControl Name="StiDesigner"/>
after window is loaded i call
private void Loaded(object sender, System.Windows.RoutedEventArgs e)
{
var model = (ReportingViewModel)ViewModel;
StiDesigner.Report = model.StiReport;
}
Where I should write ShowFileReportSave = false ? I have tried in Loaded function and in constructor but the Savebutton is still showing.
Thank you
Re: Rewrite SaveButton function
Hello,
Sorry for the mistake. For the WPF designer you can use the following option:
Thank you.
Sorry for the mistake. For the WPF designer you can use the following option:
Code: Select all
Stimulsoft.Report.StiOptions.Designer.Ribbon.ShowMainMenuReportSave = false;
Re: Rewrite SaveButton function
Hello,
it's just the reference, so the result is the same, the save button is stil showing.
Thank you.
it's just the reference, so the result is the same, the save button is stil showing.
Thank you.
Re: Rewrite SaveButton function
Hello,
Please clarify which version are you use?
Also, please check that you use this code before designer initialization.
Thank you.
Please clarify which version are you use?
Also, please check that you use this code before designer initialization.
Thank you.
Re: Rewrite SaveButton function
Hello,
thank you for your help. If I have used the code before initialization it has worked.
Thank you very much.
Problem solved.
thank you for your help. If I have used the code before initialization it has worked.
Thank you very much.
Problem solved.
Re: Rewrite SaveButton function
Hello
We are always glad to help you!
Please let us know if you need any additional help.
Thank you.
We are always glad to help you!
Please let us know if you need any additional help.
Thank you.