Custom button on report preview

Hello,

I want to add a custom button to the preview toolbar. Is this possible?

Thank you

Comments

  • edited 2:51PM
    Hello,

    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.
  • edited 2:51PM
    Thank you for the very fast response.
  • edited 2:51PM
    AlexTZ wrote: »
    Hello,

    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 ??

  • edited 2:51PM
    Hello,

    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);
  • edited 2:51PM
    AlexTZ wrote: »
    Hello,

    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
  • edited 2:51PM
    Hello,

    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)
  • edited 2:51PM
    Thanks all, this topic is useful for me. :lol:" border="0" alt="laugh.gif" />" alt=">" />

Leave a Comment