How to remove InsertPictureIcon on SDT type Picture

Hi,


in our word document, we want to remove the UI that users can click to select an image to display in the control at run time.

We replaced the picture programatically with another picture and don’t want the user to change it again.

Is there a way to do this?

Regards


Hi Joerg,


Thanks for your inquiry. Could you please attach your input Word document and expected document here for our reference. We will investigate the structure of your expected document as to how you want your final output be generated like. You can create expected document using Microsoft Word. We will then provide you code to achieve the same using Aspose.Words.

Best regards,

Thanks for your reply.

I’ve found the solution to my problem.
I have to set the IsShowingPlaceholderText property to false. So the user will not be able to change the image.

Best regards


Hi Joerg,


It is great you were able to find what you were looking for. Please let us know any time you have any further queries.

Best regards,