Hello Guys,
I just cant find a easy way to position a Shape in Word Api on a X, Y point in a word document.
How do I position a shape in Word Doc without using crazy tables etc?
Regards
Hello Guys,
I just cant find a easy way to position a Shape in Word Api on a X, Y point in a word document.
How do I position a shape in Word Doc without using crazy tables etc?
Regards
Please try using the following code:
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
Shape shape = builder.InsertImage("D:\\temp\\aspose.words.jpg");
shape.RelativeHorizontalPosition = RelativeHorizontalPosition.Page;
shape.RelativeVerticalPosition = RelativeVerticalPosition.Page;
shape.WrapType = WrapType.None;
shape.Top = 3 * 72;
shape.Left = 4 * 72;
doc.Save("D:\\temp\\18.11.docx");
its working super cool greath thanks