-
We have around 3000 documents with different formats such as PDF, Word, Excel, PPT, Msg. The links inside these documents point to one of our old systems. We want to replace these links with new system or new URLs. Can you please share sample code for the above document formats to test 2-3 document?
-
As mentioned, is it possible to uninstall and install on another developer machine once a developer completes their project? We are not looking for simultaneous use, but after one project requirement is completed and for the next project. Can the same tool be used for different projects?
Please let me know if you need any more information on this.
Thanks,
Hi Irfan,
Please check the following topics to update hyperlinks:
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";
}
}
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
hlink.Address = [http://www.aspose.com](http://www.aspose.com);
// Set the Tooltip.
hlink.ScreenTip = "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 hyperlinks 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 it if you can send the code by today afternoon.
Thanks,
Hi Irfan,
Please check the following links for Aspose.Slides.
Get all the external hyperlinks in a presentation
https://forum.aspose.com/t/62102
As far as MSG documents are concerned, this feature is not supported by Aspose.Email.