Gets the size of the tool.
[Visual Basic]
Public Property Size As Size
[C#]
public Size Size {get; set;}
Return Type
System.Drawing.Size in inches.
Example
[C#]
private void Form1_Load(object sender, System.EventArgs e) { // Remove the default printer button this.viewer1.Toolbar.Tools.RemoveAt(2); // Create And add the custom button DataDynamics.ActiveReports.Toolbar.Button btn = new DataDynamics.ActiveReports.Toolbar.Button(); btn.Caption = "MyPrint"; btn.Enabled = true; System.Drawing.Size s = new Size(20,10); btn.Size = s; btn.ToolTip = "Custom Print Button"; btn.Visible = true; btn.ImageIndex = 1; btn.ButtonStyle = DataDynamics.ActiveReports.Toolbar.ButtonStyle.TextAndIcon; btn.Id = 333; this.viewer1.Toolbar.Tools.Insert(2,btn); ActiveReport1 rpt = new ActiveReport1(); rpt.Run(); this.viewer1.Document=rpt.Document; } |
[Visual Basic]
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.Viewer1.Toolbar.Tools.RemoveAt(2)
Dim btn As New DataDynamics.ActiveReports.Toolbar.Button
btn.Caption = "MyPrint"
btn.Enabled = True
Dim s As New System.Drawing.Size(3, 5)
btn.Size = s
btn.ToolTip = "Custom Print Button"
btn.Visible = True
btn.ImageIndex = 1
btn.ButtonStyle = DataDynamics.ActiveReports.Toolbar.ButtonStyle.TextAndIcon
btn.Id = 333
Me.Viewer1.Toolbar.Tools.Insert(2, btn)
Dim rpt As New ActiveReport1
rpt.Run()
Me.Viewer1.Document = rpt.Document
End Sub |
See Also
Tool Class
| Tool Members
Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.