Insert image

Hi,
I am trying to insert an image to a word file with the following code:

builder.InsertImage(Request.ServerVariables("APPL_PHYSICAL_PATH") & "\" & "doc.jpg", RelativeHorizontalPosition.Page, HorizontalAlignment.Left, RelativeVerticalPosition.Page, VerticalAlignment.Bottom, 50, 50, WrapType.Square)

I want the image to appear at the bottom left of my doc file.
But the image keeps appearing at the top left.
What am i doing wrong ?
Could you help me?
Regards,
Eleni

Hi

Thanks for your inquiry. You can use code like the following:

Shape image = builder.InsertImage(@"common\test.jpg");
image.RelativeHorizontalPosition = RelativeHorizontalPosition.Page;
image.RelativeVerticalPosition = RelativeVerticalPosition.Page;
image.HorizontalAlignment = HorizontalAlignment.Left;
image.VerticalAlignment = VerticalAlignment.Bottom;
image.WrapType = WrapType.None;

Hope this helps.
Best regards.

Hi,
Thanks it worked.
Regards,
Eleni