Free Support Forum - aspose.com

How to unlink hyperlinks and convert them to statictext


#1

Hi to all,
Who can help me to unlink hyperlinks and convert them to statictext based on aspose.words.dll version 14 and VB.net 2008?
Thanks in advance!

Ducaisoft


#2

@ducaisoft,

Please refer to the following article.
How to Replace or Modify Hyperlinks and Replace Fields with Static Text


#3

Thanks for your reference!
Unfortunately, By studying the reference myself, I still fail how to use it. Would you please show me the demo codes?

Thanks!


#4

@ducaisoft,

Please see these sample documents (Hyperlinks-example.zip (18.0 KB)) and try running the following code;

Document doc = new Document("E:\\temp\\Hyperlinks.docx");

FieldHyperlink link = (FieldHyperlink) doc.Range.Fields[0];
link.Unlink();

doc.Save("E:\\temp\\19.1.docx");

#5

Thanks for your demo.
However, the demo works well on Aspose.Words.dll version 19 but not on version 14. How to perform it on version 14?


#6

@ducaisoft,

Unfortunately, we do not provide support for older versions of Aspose.Words. Please note that we do not provide any fixes or patches for old versions of Aspose.Words either. All fixes and new features are always added into new versions of Aspose.Words.

So, you will have to upgrade if you need to use the Unlink method and many other new features and fixes. We apologize for any inconvenience and thank you for your understanding.