Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Thu Jan 20, 2011 5:05 am

Hi

I've inserted an image into my Doc file with Spire.Doc, and now i want to insert a hyperlink on that image, could you please tell me how to do it in Spire.Doc?

Thanks

linda.masha
 
Posts: 5
Joined: Thu Dec 23, 2010 1:17 am

Thu Jan 20, 2011 8:53 am

Thank you for your inquiry!
You may get the paragraph object of the image, and append hyperlink into the paragraph. The code:
DocPicture picture = paragraph.AppendPicture(Image.FromFile("Sample.jpg"));
paragraph.AppendHyperlink("www.e-iceblue.com", picture, HyperlinkType.WebLink);
e-iceblue support
User avatar

iceblue support
 
Posts: 240
Joined: Tue Dec 21, 2010 2:56 am

Return to Spire.Doc