Represents a tool on a toolbar.
Syntax
| Visual Basic (Declaration) | |
|---|
Public MustInherit Class Tool
Inherits Component |
Example
| C# | Copy Code |
|---|
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;
} |
| Visual Basic | Copy Code |
|---|
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
arv.Toolbar.Tools.Insert(9, sep)
Dim rpt As New rptDD
rpt.Run()
arv.Document = rpt.Document
End Sub |
Remarks
Inheritance Hierarchy
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also