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(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)