Glossary Item Box

Walkthrough: Adding Code for the Combo Boxes | Walkthrough: Adding Code for the Report Toolbar | Samples | Walkthroughs

See Also ActiveReports for .NET 2 Online Help Send feedback to Data Dynamics

Walkthrough: Configuring the Report Toolbar

This walkthrough illustrates how to set up the ActiveReports Toolbox to add to the basic layout of your end-user report designer. This walkthrough builds on the walkthroughs "Creating the Basic Layout for an end-user report designer", "Configuring the ActiveReports Toolbox" and "Configuring the Layout Toolbar."

This walkthrough is split up into the following activities:

When you have completed this walkthrough your layout for end-user report designer will look similar to the following.

Adding buttons to the Toolbar collection

To add buttons to the Toolbar collection

  1. Click on tlbReport to select it.
  2. Click on the ellipsis for the Buttons (collection) property.
  3. Add 17 buttons to the collection and click OK.

Adding an ImageList to add icons

To add an ImageList

  1. Click at the top of frmDesigner to select it.
  2. Click on the ImageList control in the toolbox and drag it onto the form.
  3. Change the name of ImageList to ImgReport.
  4. Set the ImageList property for tlbReport to ImgReport.

Adding the icon images to the ImageList

To add the icon images

  1. Click on ImgReport at the bottom of frmDesigner to select it.
  2. Click on the ellipsis for the Images (collection) property.
  3. Add the following icons to the ImgReport:

  4. Click OK to continue.

Setting properties for the buttons in the Toolbox collection

To set properties for the buttons

  1. Click on tlbReport to select it.
  2. Click on the ellipsis for the Buttons (collection) property.
  3. For each button in the collection, make the following property changes and add the appropriate icons to the ImageIndex.
    Button # Tag Name Style ToolTipText
    Button1 (Empty string) tbbLine8 Separator (Empty string)
    Button2 ViewGrid tbbViewGrid Toggle ViewGrid
    Button3 ReorderGroups tbbReorderGroups PushButton ReorderGroups
    Button4 EditScript tbbEditScript PushButton EditScript
    Button5 (Empty string) tbbLine9 Separator (Empty string)
    Button6 Bold tbbBold PushButton Bold
    Button7 Italic tbbItalic PushButton Italic
    Button8 Underline tbbUnderline PushButton Underline
    Button9 (Empty string) tbbLine10 Separator (Empty string)
    Button10 AlignLeft tbbAlignLeft Toggle AlignLeft
    Button11 Center tbbCenter Toggle Center
    Button12 AlignRight tbbAlignRight Toggle AlignRight
    Button13 Justify tbbJustify Toggle Justify
    Button14 (Empty string) tbbLine11 Separator (Empty string)
    Button15 Bullets tbbBullets Toggle Bullets
    Button16 DecreaseIndent tbbDecreaseIndent PushButton DecreaseIndent
    Button17 IncreaseIndent tbbIncreaseIndent PushButton IncreaseIndent
  4. Click OK to continue.
  5. Set the Appearance property for tlbReport to Flat.
  6. Resize Panel1.

Walkthrough: Adding Code for the Combo Boxes | Walkthrough: Adding Code for the Report Toolbar | Samples | Walkthroughs

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.