PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
insert Hyperlink into table cell https://forum.pdfsharp.net/viewtopic.php?f=2&t=4296 |
Page 1 of 1 |
Author: | Jessica [ Sun Nov 14, 2021 9:00 pm ] |
Post subject: | insert Hyperlink into table cell |
Hi Can somebody give me a small code example on how to insert Hyperlink into table cell? I tried this, but only the text "test" appears but no link appearing in the table cell "Cells[1]". Code: var linkParagraph = newRow.Cells[1].AddParagraph("test"); var hyperlink = linkParagraph.AddHyperlink("http://stackoverflow.com/", HyperlinkType.Url); Jessica |
Author: | TH-Soft [ Mon Nov 15, 2021 8:02 am ] |
Post subject: | Re: insert Hyperlink into table cell |
Hi! You do not add any text to the hyperlink, so the link has no visible text and nothing to click on. Code: Paragraph para = section.AddParagraph();
var link = para.AddHyperlink(@"http://www.google.com/", HyperlinkType.Web); link.AddText("Click here"); |
Author: | Jessica [ Sat Nov 20, 2021 10:01 pm ] |
Post subject: | Re: insert Hyperlink into table cell |
Hi How can I make the paragraph text ITSELF to become the link text? |
Author: | TH-Soft [ Mon Nov 22, 2021 8:40 am ] |
Post subject: | Re: insert Hyperlink into table cell |
Jessica wrote: How can I make the paragraph text ITSELF to become the link text? Make the Hyperlink the only content of the paragraph and add all text to the Hyperlink.
|
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |