Skip to main content

Add Items to the Report Designer's Standard Toolbar

  • 2 minutes to read

This tutorial illustrates how add a new button to a Report Designer’s standard toolbar.

Important

Customization options described in this help topic are available to owners of DevExpress WinForms, DXperience, and Universal subscriptions (subscriptions that include DevExpress WinForms UI Controls). The DevExpress Reporting Subscription does not support UI customization in Report Viewer or End-User Report Designer. You can use ReportPrintTool and ReportDesignTool classes to display Print Preview and End-User Report Designer in their default configurations.

Refer to the following help topic for information on subscription options: Installation - Subscriptions that Include Reporting Components.

Tip

See the following tutorial to learn how to add a Report Designer to a WinForms application: Create a Custom End-User Report Designer.

Do the following to customize a standard designer form’s toolbar:

  1. Click the [Add] button in the Design Bar Manager’s menu and add a new menu item to it.

    HowTo - CustomUserDesignerForm2

    Change the item’s caption to Help and double-click it. Click [Add] and create a new button. Change its caption to About.

    HowTo - CustomUserDesignerForm3

  2. Handle the newly added menu item’s BarManager.ItemClick event:

    using System.Windows.Forms;
    // ...
    
    private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) {
        MessageBox.Show("This is a standard Report Designer Form.", "About");
    }
    

The following image illustrates the result:

HowTo - CustomUserDesignerForm4