MESCIUS.ActiveReports.Viewer.Common Assembly / GrapeCity.Viewer.Common.Model.Interactivity Namespace
Inheritance Hierarchy
GrapeCity.Viewer.Common.Model.Interactivity Namespace
Classes
 ClassDescription
Class

Create a simple Windows Forms application that loads a report containing ApplyParameters (see Load Reports on how to create a Windows Forms application and preview a report in the Viewer).

Add an Action event handler for the Viewer control and make the handler method look like the code in the example below.

C#
Copy Code
private void Viewer1_Action(object sender, GrapeCity.ActiveReports.Viewer.Win.Viewer.ActionEventArgs e)
{
    if (e.Action is GrapeCity.Viewer.Common.Model.Interactivity.ApplyParametersAction action)
    {
        foreach (var parameter in action.Parameters)
        {
            string values = string.Join(Environment.NewLine + "  ", parameter.Values.Select(value => value?.ToString()));
            MessageBox.Show($"Parameter:{Environment.NewLine}  {parameter.Name}{Environment.NewLine}Values:{Environment.NewLine}  {values}");
        }
    }
}
VB.NET
Copy Code
Private Sub Viewer1_Action(sender As Object, e As GrapeCity.ActiveReports.Viewer.Win.Viewer.ActionEventArgs) Handles Viewer1.Action
    Dim action As GrapeCity.Viewer.Common.Model.Interactivity.ApplyParametersAction
    action = e.Action
    If action IsNot Nothing Then
        For Each parameter In action.Parameters
            Dim values As String
            values = String.Join(Environment.NewLine + "  ", parameter.Values.Select(Function(value) value?.ToString()))
            MessageBox.Show($"Parameter:{Environment.NewLine}  {parameter.Name}{Environment.NewLine}Values:{Environment.NewLine}  {values}")
        Next parameter
    End If
End Sub
ClassRepresents an action that navigates to a specific location within the report when triggered.
ClassRepresents an action that triggers a drillthrough report when executed.
ClassRepresents an action that navigates to a specified URL when triggered.
Interfaces
 InterfaceDescription
InterfaceDefines a contract for actions that can be performed on report items.
InterfaceDefines the interface for custom report actions handlers.
See Also