I am running into an issue with office 2007 word Doc (.docx) while Using Aspose.Words (latest available version).
We are trying to implement document tracking by inserting an image in the document which actually refers to a Rest service end point…Rest end point actually saves the details of the person who is viewing the document when it is opened.
Now the issue is that, when the word doc(docx) is opened it is actually calling the end point while looking to load the inserted image and everything works fine BUT When the document is edited and saved, the document no longer request for that opened document.
I can see the reason for the same, as the document after save actually updates the xml configs and save the image in the media folder of its schema( if you save the docx as zip you can get to the xml’s), so the url is not referred and the image is retrieved from the folders.
Here’s how i am inserting image
Shape sh = new Shape(Type.Image); sh.SourceFullName = "rest url.gif" documentbuilder.insertNode(shape)
We have also tried INCLUDEPICTURE /"url.gic /d
enter code here
How can i get around it so word doc always look for the image instead of getting it from its metadata?