ActiveReports 6 Online Help
Tool Class
Members  Example 

Represents a tool on a toolbar.
Object Model
Tool Class
Syntax
'Declaration
 
Public MustInherit Class Tool 
   Inherits System.ComponentModel.Component
public abstract class Tool : System.ComponentModel.Component 
Remarks
The ButtonStyle property is now on the Button class only.  If you need to iterate through tools and change the ButtonStyle, you must cast the tool to Button and check for null before attempting to change the ButtonStyle
Example
Private void arv_Load(object sender, System.EventArgs e)
{
    DataDynamics.ActiveReports.Toolbar.Separator sep = new DataDynamics.ActiveReports.Toolbar.Separator();
    System.Drawing.Size s = new Size(20,10);
    sep.Enabled = true;
    sep.Id = 777;
    sep.Size = s;
    sep.ToolTip = "Do not click here.";
    sep.Visible = true;
    //insert the tool between the single & multipage icons
    arv.Toolbar.Tools.Insert(9, sep);

    rptDD rpt = new rptDD();
    rpt.Run();
    arv.Document = rpt.Document;
}
Private Sub arv_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles arv.Load
    Dim sep As New DataDynamics.ActiveReports.Toolbar.Separator
    Dim s As New System.Drawing.Size(1000, 2000)
    sep.Enabled = True
    sep.Id = 777
    sep.Size = s
    sep.ToolTip = "Do not click here."
    sep.Visible = True
    'insert the tool between single & multipage icons
    arv.Toolbar.Tools.Insert(9, sep)

    Dim rpt As New rptDD
    rpt.Run()
    arv.Document = rpt.Document
End Sub
Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         DataDynamics.ActiveReports.Toolbar.Tool
            DataDynamics.ActiveReports.Toolbar.Button
            DataDynamics.ActiveReports.Toolbar.PlaceHolder
            DataDynamics.ActiveReports.Toolbar.Separator

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

Reference

Tool Members
DataDynamics.ActiveReports.Toolbar Namespace

Send Feedback