ActiveReports 9
ExecuteAction Method (Designer)
Example 

Executes a specified DesignerAction command. 
Overload List
OverloadDescription
ExecuteAction(DesignerAction)Executes a specified DesignerAction command. This method can be used when implementing a custom toolbar or menu. This method will perform the report actions in response to the toolbar or menu items.  
ExecuteAction(DesignerAction,Object)Executes a specified DesignerAction command. This method can be used when implementing a custom toolbar or menu. This method will perform the report actions in response to the toolbar or menu items.  
Remarks
This method can be used when implementing a custom toolbar or menu. This method will perform the report actions in response to the toolbar or menu items.
Example
private void mnuLoadLayout_Click(object sender, System.EventArgs e)
{
    this.designer1.ExecuteAction(GrapeCity.ActiveReports.Design.DesignerAction.FileOpen);
}

private void mnuSaveLayout_Click(object sender, System.EventArgs e)
{
    this.designer1.ExecuteAction(GrapeCity.ActiveReports.Design.DesignerAction.FileSave);
}

private void mnuPageSetup_Click(object sender, System.EventArgs e)
{
    this.designer1.ExecuteAction(GrapeCity.ActiveReports.Design.DesignerAction.ReportSettings);
}
Private Sub mnuLoadLayout_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuLoadLayout.Click
    Me.Designer1.ExecuteAction(DesignerAction.FileOpen)
End Sub

Private Sub mnuSaveLayout_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuSaveLayout.Click
    Me.Designer1.ExecuteAction(DesignerAction.FileSave)
End Sub

Private Sub mnuPageSetup_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuPageSetup.Click
    Me.Designer1.ExecuteAction(DesignerAction.ReportSettings)
End Sub
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

Designer Class
Designer Members
DesignerAction Enumeration

Walkthroughs

Creating a Basic End User Report Designer

 

 


Copyright © 2014 GrapeCity, inc. All rights reserved

Support Forum