'Declaration Public Event HyperLink As HyperLinkEventHandler
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.
Property | Description |
---|---|
Button | Gets the mouse button that the user clicked to raise the event. |
CreateNewTab | Gets or sets a value indicating whether a new browser tab or window should be initialized to open the target of the hyperlink. |
Handled | Gets or sets a value indicating whether the HyperLink event is handled. |
HyperLink | Gets or sets a value that indicates the target of the hyperlink. |
Remarks
The HyperLinkEventArgs provides information about the hyperlink, including its URL. Event handlers can use this information to perform custom actions, such as navigating to the hyperlink or displaying it in a web browser.
Example
private void viewer1_HyperLink(object sender, GrapeCity.ActiveReports.Viewer.Win.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); }
Private Sub Viewer1_HyperLink(ByVal sender As Object, ByVal e As GrapeCity.ActiveReports.Viewer.Win _ 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