Announcement

Collapse
No announcement yet.

How to use Link_Dest member of OnHyperLinkEvent

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Feature How to use Link_Dest member of OnHyperLinkEvent

    Hi,

    I'm trying to use the OnHyperLink event of the ActiveX control but can't get any info out of the "dest" member of the passed parameter (_DFoxitPDFSDKEvents_OnHyperLinkEvent) which is of type Link_Dest. Would someone have a usage example in .NET?

    private void axFoxitPDFSDK1_OnHyperLink(object sender, AxFoxitPDFSDKProLib._DFoxitPDFSDKEvents_OnHyperLin kEvent e)
    {
    // How to get access to member of e.dest?
    // The following returns non-null but no member is accessible
    FoxitPDFSDKProLib.Link_Dest ldc = e.dest;
    }


    Thank you!

  • #2
    Hello Masseyf,

    Try this:

    private void axFoxitPDFSDK1_OnHyperLink(object sender, AxFoxitPDFSDKProLib._DFoxitPDFSDKEvents_OnHyperLin kEvent e)
    {
    String abc = e.linktype;
    Int def = e.dest.GetPageIndex();

    MessageBox.Show(abc+" "+def.ToString()+" "+e.dest);
    }

    This should be how you use the dest parameter. Let me know if you are still having problems.

    Thank you,
    Huy Tran

    Comment

    Working...
    X
    😀
    🥰
    🤢
    😎
    😡
    👍
    👎