ActiveReports 8
CreateToolStrips Method
See Also  Example
GrapeCity.ActiveReports.Design.Win.v8 Assembly > GrapeCity.ActiveReports.Design Namespace > Designer Class : CreateToolStrips Method

strips
The ToolStrip or ToolStripContainer control in which to create the ToolStrips.

Glossary Item Box

Creates ActiveReports ToolStrips in a ToolStrip or ToolStripContainer control.

Syntax

Visual Basic (Declaration) 
Public Function CreateToolStrips( _
   ByVal ParamArray strips() As DesignerToolStrips _
) As System.Windows.Forms.ToolStrip()
C# 
public System.Windows.Forms.ToolStrip[] CreateToolStrips( 
   params DesignerToolStrips[] strips
)

Parameters

strips
The ToolStrip or ToolStripContainer control in which to create the ToolStrips.

Example

Visual BasicCopy Code
Private Sub Designer1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Designer1.Load
        Dim menuStrip As ToolStrip = Me.Designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Menu)(0)
        Dim editStrip As ToolStrip = Me.Designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Edit)(0)
        Dim formatStrip As ToolStrip = Me.Designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Format)(0)
        Dim layoutStrip As ToolStrip = Me.Designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Layout)(0)
        Dim reportStrip As ToolStrip = Me.Designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Report)(0)
        Dim undoStrip As ToolStrip = Me.Designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Undo)(0)
        Dim zoomStrip As ToolStrip = Me.Designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Zoom)(0)
        Me.ToolStripContainer1.TopToolStripPanel.Join(menuStrip, 0)
        Me.ToolStripContainer1.TopToolStripPanel.Join(editStrip, 1)
        Me.ToolStripContainer1.TopToolStripPanel.Join(formatStrip, 2)
        Me.ToolStripContainer1.TopToolStripPanel.Join(layoutStrip, 3)
        Me.ToolStripContainer1.TopToolStripPanel.Join(reportStrip, 4)
        Me.ToolStripContainer1.TopToolStripPanel.Join(undoStrip, 5)
        Me.ToolStripContainer1.TopToolStripPanel.Join(zoomStrip, 6)
    End Sub
C#Copy Code
private void designer1_Load(object sender, EventArgs e)
       {
           ToolStrip menuStrip = this.designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Menu)[0];
           ToolStrip editStrip = this.designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Edit)[0];
           ToolStrip formatStrip = this.designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Format)[0];
           ToolStrip layoutStrip = this.designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Layout)[0];
           ToolStrip reportStrip = this.designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Report)[0];
           ToolStrip undoStrip = this.designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Undo)[0];
           ToolStrip zoomStrip = this.designer1.CreateToolStrips(GrapeCity.ActiveReports.Design.DesignerToolStrips.Zoom)[0];
           this.toolStripContainer1.TopToolStripPanel.Join(menuStrip, 0);
           this.toolStripContainer1.TopToolStripPanel.Join(editStrip, 1);
           this.toolStripContainer1.TopToolStripPanel.Join(formatStrip, 2);
           this.toolStripContainer1.TopToolStripPanel.Join(layoutStrip, 3);
           this.toolStripContainer1.TopToolStripPanel.Join(reportStrip, 4);
           this.toolStripContainer1.TopToolStripPanel.Join(undoStrip, 5);
           this.toolStripContainer1.TopToolStripPanel.Join(zoomStrip, 6);
       }

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also