Pati123

Hi,

I am developing a VSTO SE addin to office word.
I want to add a image dynamically (through code) to a document content may be to a spesic place user needs.

Please give us away to handle this problem.

Thanks.
Tharindu


Re: Visual Studio Tools for Office inset a image(gif) to the document content in VSTO SE

flow chart

I met the same question, any body can give a good suggest. thanks.




Re: Visual Studio Tools for Office inset a image(gif) to the document content in VSTO SE

Ji Zhou C MSFT

Hi Tharindu,

Try these codes please:

private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
object missing = Type.Missing;

this.Application.Selection.InlineShapes.AddPicture(@"C:\Documents and Settings\v-jzho\My Documents\My Pictures\test.gif",ref missing,ref missing,ref missing);
}

Wish this helps.

Thanks

Ji