How to Disable Picture Content Control using .NET

Hi Team,

I am using Picture Content control to insert appropriate image and generate .docx. The logic works as expected and I get the expected docx.

However the in the output document, I get the icon on top of the Image which suggests “Click here to insert image”

This icon is overlaying on top of the Image and distorts it. Most important I do not intend to give this option to the end-user who views the document.

Is there someway I can disable this option while still using Picture Content Control ?

Please suggest.

Code
if (contentControl.GetChild(NodeType.Shape, 0, true) != null) _
{ _
_ var shape = (Shape)contentControl.GetChild(NodeType.Shape, 0, true);

_ var image = shape.ImageData;

_ image.ImageBytes = imageBytes;_
}

Thanks,
Pawan

@pawanks

Could you please ZIP and attach your input Word document and image here for testing? We will investigate the issue on our side and provide you more information.

A post was split to a new topic: Disable insert picture option in Picture Content Control