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:15AM
    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:15AM
    Thank you for the very fast response.
  • edited 2:15AM
    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:15AM
    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:15AM
    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:15AM
    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:15AM
    Thanks all, this topic is useful for me. :lol:" border="0" alt="laugh.gif" />" alt=">" />

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.