See Also

Viewer Class  | Viewer Members  | Walkthrough: Hyperlinks and Simulated Drill-Down Reporting

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports.Viewer Send feedback to Data Dynamics

HyperLink Event

Occurs when the user clicks on text or an image that has a hyperlink assigned to it.

[Visual Basic]
Public Event HyperLink() As HyperLinkEventHandler
[C#]
public event HyperLinkEventHandler HyperLink();

Event Data

The event handler receives an argument of type HyperLinkEventArgs containing data related to this event. The following HyperLinkEventArgs properties provide information specific to this event.

PropertyDescription
Button Gets the mouse button that the user clicked to fire the event.
Handled Sets or returns a value indicating whether the HyperLinkEvent is handled.
HyperLink Gets the hyperlink target.

Example

[C#] 

private void viewer1_HyperLink(object sender, DataDynamics.ActiveReports.Viewer.HyperLinkEventArgs e) 
{     
    rptDrillDown1 rpt2 = new rptDrillDown1();     
    frmViewDrillDown1 frm2 = new frmViewDrillDown1();     
    rpt2.Parameters["customerID"].Value = e.HyperLink.ToString();     
    rpt2.Run();     
    frm2.viewer1.Document = rpt2.Document;     
    frm2.ShowDialog(this); 
}

[Visual Basic] 

Private Sub Viewer1_HyperLink(ByVal sender As Object, ByVal e As DataDynamics.ActiveReports.Viewer. _
    HyperLinkEventArgs) Handles Viewer1.HyperLink
    Dim rpt2 As New rptDrillDown1()
    Dim frm2 As New frmViewDrillDown1()
    rpt2.Parameters("customerID").Value = e.HyperLink.ToString
    Console.WriteLine(rpt2.ds.SQL.ToString)
    rpt2.Run()
    frm2.Viewer1.Document = rpt2.Document
    frm2.ShowDialog(Me)
End Sub

See Also

Viewer Class  | Viewer Members  | Walkthrough: Hyperlinks and Simulated Drill-Down Reporting

 

 


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