We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Insert image IndentLeft

Please help,


I want to insert an image into a word document after a paragraph of text, and have it left indented by 10

So the key here is how to indent an image inserted into a word document.

As it is possible to indent text. E.g. ParagraphFormat.IndentLeft = 10.

Thank you

Hi Aaron,


Thanks for your inquiry.

Sure, using the Shape class you can create or modify shapes in a Microsoft Word document. A Shape represents an object in the drawing layer, such as an AutoShape, textbox, freeform, OLE object, ActiveX control, or picture. You can place a floating Shape anywhere inside the page. Please try run the following code for an example:

DocumentBuilder builder = new DocumentBuilder();

Shape shape = builder.InsertImage(@"C:\Temp\Aspose.Words.png");

shape.WrapType = WrapType.None;

shape.Left -= 100;

builder.Document.Save(@"C:\Temp\out.doc");


Please let me know if I can be of any further assistance.

Best regards,