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