facebooktwittermenuarrow-up

GemBox Support Forum

How to put a image into a documente by replace

HI, i have a document and in the and has a place to put a signature. I think that probaly i’ve to use document.Content.Replace. PLEASE!

Hi Vitor,

Apologize for the bit late reply.

Note that you can use ContentRange.Set method to replace one ContentRange with another.
So try using something like this:

var content = document.Content.Find("{100}").First();
var picture = new Picture(document, "image.png");
content.Set(picture.Content);

I hope this helps.

Regards,
Mario

1 Like

Thanks Mario, now you have saved my job