Custom button on report preview
Hello,
I want to add a custom button to the preview toolbar. Is this possible?
Thank you
I want to add a custom button to the preview toolbar. Is this possible?
Thank you
Comments
It's not possible now (you have to create own preview as described in the programmer's manual). I will add this feature in the further builds. I will let you know when it will be ready.
IS IT possible now to add custom button ??
Yes, it's possible.
using DevComponents.DotNetBar;
ButtonItem customButton = new ButtonItem();
customButton.Text = "my button";
customButton.Click += new EventHandler(customButton_Click);
previewControl1.ToolBar.Items.Add(customButton);
Hi.
I wonder how I can do this in VB.Net
Thanks for the help.
Best regards from Ken
Oh, I'm not so familiar with VB.Net. Try the following code:
Imports DevComponents.DotNetBar
Dim customButton As ButtonItem = New ButtonItem
customButton.Text = "my button"
AddHandler customButton.Click, AddressOf customButton_Click
previewControl1.ToolBar.Items.Add(customButton)