i go the output insert hyperlink in word document by using interop dll
code
=====
object address = @"http://www.google.com";
object screentip = "Welcome to google";
object text="Google";
object missing = System.Reflection.Missing.Value;
object start = 0, end = 0;
Word1.Range rng = oWordDoc.Range(ref start, ref end);
oWord.Selection.Range.Hyperlinks.Add(rng, ref address, ref missing, ref screentip, ref text, ref missing);
this code is working perfectly when i run this code is google when i click google hyperlink googl.com website will be open
but i want code for
inserting the hyperlink in same word document headings...
this is my urgent requirement
thanks..


Sharon White50 reputationPosted Oct 30, 2012, 2:06 AM EDT
So I try to remove original headings and then append hyperlink with new added headings.
I don't think my method is useful, so I suggest that you can try to find some C# Word components to help you.
Eugene Montes24 reputationPosted Mar 30, 2015, 1:58 AM EDT
// Retrieve document's default header. HeaderFooter defaultHeader = document.Sections[0] .HeadersFooters[HeaderFooterType.HeaderDefault]; // Add hyperlink to it. defaultHeader.Blocks.Add( new Paragraph(document, new Hyperlink(document, "http://www.google.com", "Welcome to google")));