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

Free Support Forum - aspose.com

Insert image on second page

How do I insert image to the second page of an existing document? I can insert image using DocumentBuilder.InsertImage with specified position and size but it goes only to the first page.

Hi Siauway,


Thank you for inquiry, Yes, you can place image anywhere in your Word document by using bookmarks. Please follow up the code snippet:


Document doc = new Document(@"d:\template.doc);

DocumentBuilder builder = new DocumentBuilder(doc);


Image imgJpg = Image.FromFile(@"d:\test.JPG");


// Move to the location where you placed bookmark named "image1".

builder.MoveToBookmark("image1");

builder.InsertImage(imgJpg);


In case of any ambiguity, please let me know.