Hyperlinks not working inside WindowsFormsHost

Posted by: hg on 14 December 2020, 8:21 pm EST

    • Post Options:
    • Link

    Posted 14 December 2020, 8:21 pm EST

    Hello,

    we are using Spread.NET v14 WinForms which includes the new Excel compatible hyperlinks feature. This works well as long it is a real WinForms application.

    Because we want to use it in our existing WPF application and at the same time still want to use the full power of the WinForms control, we are running it inside a WindowsFormsHost container.

    With this setup the hyperlinks are still displayed, but no longer executed.

    How can we get those hyperlinks working as they are promoted with the new version?

    Attached you can find a simple example that illustrates the problem.

    PS.: It also contains a workaround that fails as well, based on some invalid reported IHyperlink.Range values. Details in the sample.

    LinkDemoApp.zip

  • Posted 15 December 2020, 6:30 pm EST

    Hello Herald,

    Thank you for attaching the application. We could see the problem and have hence forwarded it to the developers [ID: 14225].

    We will update you once it is fixed.

    Regards,

  • Posted 21 December 2020, 8:59 pm EST

    Hello,

    do you have a rough timeline for us when we can expect updates on this?

    Regards,

  • Posted 22 December 2020, 3:46 pm EST

    Hi,

    I have asked for an ETA from the team and will get back to you as soon as we receive some information.

    Regards,

  • Posted 29 December 2020, 2:41 am EST

    Hello,

    The FpSpread was created with LegacyBehaviors is All. To make the hyperlinks work, it should be created with LegacyBehaviors is None.

    The MainWindow.xaml should be modified like this:```



    <WindowsFormsHost.Child>

    <fp:FpSpread x:Name=“excelViewerWinForms” Dock=“Fill” LegacyBehaviors=“None”/>

    </WindowsFormsHost.Child>

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels