We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Re: Updating OLE objects in Word

I’m trying to unlink linked images inside a doc file using the above suggested method.

I tried the following code and this doesn’t unlink the images on save.

what am I doing wrong here?

foreach (Shape shape in shapes)


if (shape.ImageData.IsLink)

shape.ImageData.SourceFullName = @"C:\\Temp\\image_2.jpg";


Hi Akram,

Thanks for your inquiry. To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document.
  • Aspose.Words generated output document which shows the undesired behavior.
  • Your expected document which shows the correct output. Please create this document using Microsoft Word.

As soon as you get these pieces of information ready, we’ll start investigation into your issue and provide you more information.

Best regards,