ReportDesigner - manual (how customize ReportDesigner)
I really need to customize buttons on ReportDesigner. I am considering to buy FastReport, but I need this feature.
I can easily hide buttons from previe control or add buttons on preview control. It is fantastic.
I cannot found in manual even on forum, how to do the same on designer control. I just need to hide some buttons or override their functionality.
I need to hide Open, Save, Save All and override functionality on PREVIEW. How to to it please?
I found option to do it directly on designer, but I need to hide buttons in program - programmatically.
I can easily hide buttons from previe control or add buttons on preview control. It is fantastic.
ButtonItem customButton = new ButtonItem();
customButton.Text = "my button";
customButton.Click += new EventHandler(customButton_Click);
preview.ToolBar.Items.Add(customButton);
I cannot found in manual even on forum, how to do the same on designer control. I just need to hide some buttons or override their functionality.
I need to hide Open, Save, Save All and override functionality on PREVIEW. How to to it please?
I found option to do it directly on designer, but I need to hide buttons in program - programmatically.
Comments
Use this code:
Overriding the preview action is not working now due to the bug in this action. I will fix it tomorrow.
And if it will be fixed, how it will be possible please to override action on preview button?
Thank you.
But it is not override, but only add new event to existing one.
But thank you, I will try it tommorrow.
Behaviour of previewControl and designerControl is little different, but ok.I am trying now to acces to ContextMenu of SAVE button on PreviewControl.
I am able to change caption - so i am able to acces to save button. But I dont know how to access to context menu.
I want to hide SAVE button in FastReport PreviewControl but I want to add contextmenu and same on click functionality to my own button on formular.
But i am not able to acces OnClick event or ContextMenu. Thanks for help.
I want to raise click, but it does'nt work. Is it possible to call click event and show context menu around my OWN BUTTON on different place on formular?