question

Mathew-0656 avatar image
0 Votes"
Mathew-0656 asked CharlesKenyon-8472 commented

Image in header causing image in document not to display

We have Word template documents containing Content Controls which are used to generate documents. In one of the templates, we have a repeatable template section containing image content controls.
When the full document is generated, one of the images in a particular section is always missing when viewed in Word's latest desktop version, even though the XML shows the DrawingML element is there in full. The image displays correctly in the PDF, when viewed in Libre Office and the Microsoft Teams Word Viewer, just not in Word's latest desktop version.
We have played around with the template and noticed taking out the image in the header of the template document allows the missing image within the document to display correctly!
All the xml and _rels files look fine and the only difference in any XML between the working and broken documents is the presence of the image in the header. Using different images/formatting still results in the same issue.

Why is the image in the header causing a specific image within the document not to display?

office-word-itpro
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Mathew-0656
I have some questions based on your description.

  • Could you please explain more about "Word's latest desktop version"? Is it Microsoft 365 Apps with Version 2107 (Build 14228.20250)?

  • Where do you save this file template? Besides, are the generated document saved on local drive or on cloud?

  • Does the images in Header also used the Picture Conten Control?
    Please try to insert the image directlt in Header to check this issue.

0 Votes 0 ·

@emilyhua-msft
Thanks for your message.

We first noticed it on Version 2106 (Build 14131.20320) but we are also seeing this issue in Version 2107 (Build 14228.20226)

Both the templates and generated documents are stored in Azure Blob Storage. Both are downloaded and used within the Word app however this is when we are seeing the issue

The image in the Header is not a Content Control, it is a normal image.

I discovered that inserting the image in the Header as an embedded object instead of a normal image allows all images within the document to appear, however I am not sure why this works and this solution would require us to manually alter a lot of templates.

0 Votes 0 ·

0 Answers