See Also

Button Members  | DataDynamics.ActiveReports.Toolbar Namespace  | Walkthrough: Customizing the Viewer Control

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports.Viewer Send feedback to Data Dynamics

Button Class

Displays a standard push button on the toolbar.

For a list of all members of this type, see Button members.

Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         DataDynamics.ActiveReports.Toolbar.Tool
            DataDynamics.ActiveReports.Toolbar.Button
               DataDynamics.ActiveReports.Toolbar.CheckButton

Syntax

[Visual Basic]
Public Class Button    Inherits Tool
[C#]
public class Button : Tool

Remarks

Note:  In order to enable the Viewer's Copy button, you will need to add references to the RtfExport.dll and the TextExport.dll.

Example

[C#] 

// 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.ToolTip = "Custom Print Button"; 
btn.ImageIndex = 1; 
btn.ButtonStyle = DataDynamics.ActiveReports.Toolbar.ButtonStyle.TextAndIcon; 
btn.Id = 333; 
this.viewer1.Toolbar.Tools.Insert(2,btn);

[Visual Basic] 

' Remove the default print button
Me.Viewer1.Toolbar.Tools.RemoveAt(2)
' Create and add the custom button
Dim btn As New DataDynamics.ActiveReports.Toolbar.Button()
btn.Caption = "MyPrint"
btn.ToolTip = "Custom Print Button"
btn.ImageIndex = 1
btn.ButtonStyle = DataDynamics.ActiveReports.Toolbar.ButtonStyle.TextAndIcon
btn.Id = 333
Me.Viewer1.Toolbar.Tools.Insert(2, btn)

See Also

Button Members  | DataDynamics.ActiveReports.Toolbar Namespace  | Walkthrough: Customizing the Viewer Control

 

 


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