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

Free Support Forum - aspose.com

Update of nested fields in INCLUDEPICTURE does not work


it seems that update of nested REF fields within field INCLUDEPICTURE does not work.

I have document with following fields:
{ SET Grafik “Tree.jpg” }
Row1: { REF Grafik }

Now update all fields in document using Microsoft Office (–> FieldResults are updated)
Result: Tree is shown in Row1 (as text) and Row2 (as Picture)
So far so good.

Now change value in Set-field Grafik and save document.
{ SET Grafik “Flower.jpg” }
No update is done - tree is still shown in both rows
This state of document is saved with attachement: TestIncludePicture.dot
So far so good.


  • Update complete document using Microsoft Office:

    • ok: Flower is now shown in Row1 as text
    • ok: Flower is now shown in Row2 as Picture
  • Update complete document using Aspose Word 17.7:

    • ok: Flower is now shown in Row1 as text
    • error: Tree is still shown in Row2 as Picture

See attachements to reproduce the problem. Source directory of attachments must be adapted in java example.
170914 IncludePicture Nested Fields.zip (37.8 KB)

Thanks a lot
Best regards


Thanks for your inquiry. Please use LoadOptions.PreserveIncludePictureField property to get or set whether to preserve the INCLUDEPICTURE field when reading Microsoft Word formats. Please the value of this property as true to get the desired output.

LoadOptions options = new LoadOptions();
Document doc = new Document("TestIncludePicture.dot", options);

It works fine. Thanks a lot!

Best regards


Thanks for your feedback. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.