Free Support Forum - aspose.com

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.

Thanks,

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

hlink.Address
= 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 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.

Thanks,

Hi Irfan,

Please check the following links for Aspose.Slides.

http://www.aspose.com/docs/display/slidesnet/2.2.13+Get+all+the+external+hyperlinks+in+a+presentation

http://www.aspose.com/community/forums/permalink/575467/575467/showthread.aspx#575467

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