Click here to Skip to main content
15,888,803 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want add hyperlink to image. How make it?
C#
using (DocX document = DocX.Create(@"Test.docx"))
{
    // Add a hyperlink to this document.
    Hyperlink h = document.AddHyperlink
    ("Google", new Uri("http://www.google.com"));

    // Add a new Paragraph to this document.
    Paragraph p = document.InsertParagraph();
    p.Append("My favourite search engine is ");
    p.AppendHyperlink(h);
    p.Append(", I think it's great.");

    // Save all changes made to this document.
    document.Save();
}
Posted
Comments
Maciej Los 4-Dec-14 11:59am    
What's the issue?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900