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

Free Support Forum - aspose.com

Convert Image to Word doc


how do I do this?

Hi Wayne,

Thanks for your inquiry. You can simply use DocumentBuilder.InsertImage method to insert the image in the Document and save the final output to Doc/Docx as shown in following code example. Hope this helps you.

If you still face problem, please manually create your expected Word document using Microsoft Word and attach it here for our reference. We will investigate how you want your final Word output be generated like. We will then provide you more information on this along with code.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.insertImage(MyDir + "in.jpg");
doc.save(MyDir + "Out.docx");