Free Support Forum -

3000 documents with different formats such as PDF- Word- Excel- PPT- Msg-

1) We have around 3000 documents with different formats such as PDF, Word, Excel, PPT, Msg, The links inside these documents pointing to one of our old systems. We want to replace these links with new system or new url. Can you please share sample code for above document formats to test 2-3 documents.

2) As mentioned , Is it possible to uninstall and install on another developer machine, once a developer completed his project. We are not looking for simultaneous, but after one project requirement is completed, and for next project. can the same tool be used for different project.

Please let me know, if you need any more information on this.


Hi Irfan,

Please check the following topics to update hyperlinks:

Manage hyperlinks in Excel documents

Manage hyperlinks in PowerPoint documents

Manage hyperlinks in PDF documents

You can use the following code for Word documents.

foreach (Field field in doc.Range.Fields)


if (field.Type.Equals(FieldType.FieldHyperlink))


FieldHyperlink link = (FieldHyperlink)field;

link.Address = "new address";


}<?xml:namespace prefix = "o" ns = "urn:schemas-microsoft-com:office:office" />

Following code can be used to update hyperlinks in Excel files.

// Get the first Hyperlink object to fetch the existing hyperlink

Hyperlink hlink = worksheet.Hyperlinks[0];

// Change the address


// Set the Tooltip.

= “Click here to got to Aspose Site”;

// Set the label to display

hlink.TextToDisplay = “Aspose
Site - The .Net and Java Component Publisher!”

Best Regards,

Can you please share the code for Replacing hyper links with new links for PPT and Msg documents. However, I tried yesterday and found some code for Word, PDF and Excel Documents.

I really appreciate, If you can send the code by today afternoon.


Hi Irfan,

Please check the following links for Aspose.Slides.

As far as MSG documents are concerned, this feature is not supported by Aspose.Email.