Profile Picture

Inset HyperlinkText To Header

Posted By Chris Dolan 5 Years Ago
Author
Message
Chris Dolan
Posted 5 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 5 Years Ago
Posts: 10, Visits: 31
How do I add this programatically?

Am using the Visual Component with CommandBars.

Thanks in advance.

Chris

Nevron Support
Posted 5 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009
Hi Chris,
It is basically the same as adding content to a section:
   NSection section = nRichTextViewWithCommandBarsControl1.Widget.View.Content.Sections[0];

    NHeaderFooter header = new NHeaderFooter();
    section.Header = header;

    NParagraph par1 = new NParagraph();
    NHyperlinkInline hyperlink = new NHyperlinkInline();
    hyperlink.Text = "Google";
    hyperlink.Hyperlink = new NUrlHyperlink("https://www.google.com");
    par1.Inlines.Add(hyperlink);
    header.Blocks.Add(par1);

The only difference is that you need to place the objects in the section header / footer Blocks collection instead of the section blocks. Let us know if you meet any problems or have any questions.

Best Regards,
Nevron Support Team



Chris Dolan
Posted 5 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 5 Years Ago
Posts: 10, Visits: 31
That works well,

The only problem is on saving as a PDF the link is no longer a link.

Is that a bug?

Chris

Nevron Support
Posted 5 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009
Hi Chris,
Yes it is a problem with the PDF export which we'll fix for the upcoming 2019.1 version of the control.

Best Regards,
Nevron Support Team



Chris Dolan
Posted 5 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)

Group: Forum Members
Last Active: 5 Years Ago
Posts: 10, Visits: 31
Is there any workaround? I am happy to test any updated DLL please let me know what to do next.

Nevron Support
Posted 5 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009
Hi Chris,
We're currently implementing it - will let you know as soon as an update is available (in the next couple of days). 

Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic