Using the MS Office Interops the code looks like what I have below. How can I accomplish this with Aspose Words? I need to Save the linked imaged with my file, update the file and break the links. Once I can figure this out I am buying the library.
for (int i = 0; i < oWord.Documents[1].InlineShapes.Count; i++)
{
try
{
oWord.Documents[1].InlineShapes[i].LinkFormat.SavePictureWithDocument = true;
oWord.Documents[1].InlineShapes[i].LinkFormat.Update();
oWord.Documents[1].InlineShapes[i].LinkFormat.BreakLink();
}
catch (Exception e)
{
// do nothing…
}
}
Thanks for your inquiry. Could you please attach your input and expected output Word documents here for our reference? We will then provide you more information about your query along with code.