[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Viewer.Wpf.Viewer.HyperLink

HyperLink Event

Occurs when a hyperlink is clicked in the currently opened document.

Namespace: GrapeCity.ActiveReports.Viewer.Wpf
Assembly: MESCIUS.ActiveReports.Viewer.Wpf.dll
public event HyperLinkEventHandler HyperLink
Returns
Type Description
HyperLinkEventHandler Occurs when a hyperlink is clicked in the currently opened document.
viewer.HyperLink += (sender, e) =>
{
    // Check if the hyperlink is not null or empty
    if (!string.IsNullOrEmpty(e.HyperLink))
    {
        // Open the hyperlink in the default web browser
        System.Diagnostics.Process.Start(e.HyperLink);
        // Optionally, set Handled to true to prevent the default behavior
        e.Handled = true;
    }
};