Exemplo n.º 1
0
        public static void AddLinkToWebLink()
        {
            WordDocument        document = new WordDocument();
            WordDocumentBuilder builder  = new WordDocumentBuilder(document);

            //Add hyperlink to web url
            builder.InsertHyperlink("this is hyperlink", "http://www.iditect.com", "go to iditect site");

            WordFile wordFile = new WordFile();

            using (var stream = File.OpenWrite("AddLinkToWebLink.docx"))
            {
                wordFile.Export(document, stream);
            }
        }