C#: Online Guide
How To: Word SDK
Insert Image into Microsoft Office Word
Home ›› XDoc.Word ›› C# Word: Insert Image

C# Word - Insert Image to Word Page in C#.NET

How to Insert Image to Word Page in C# Project


RasterEdge XDoc.Word Library provides some methods for developers to insert image to Word pages. But if you want to insert various types of images, you may need to add the reference RasterEdge.XImage.Raster.dll into your project. If not, you can only add bitmap to Word page(s).

Related .net document control helps:
asp.net edit pdf image control: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#
asp.net pdf viewer control: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET
asp.net pdf document viewer: ASP.NET PDF Document Viewer in C#: open, display, view, annotate, redact Adobe PDF files online in ASP.NET MVC & WebForm...
asp.net edit pdf text color: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET
asp.net annotate pdf control: ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C#
mvc pdf editor: ASP.NET MVC PDF Viewer & Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC
asp.net ppt viewer: ASP.NET PowerPoint Document Viewer Control (MVC & WebForms): view ppt, pptx files online in C# using ASP.NET

Other user interested Office Word related articles:
ASP.NET Office Word Document Viewer - view, annotate, redact word (doc) files online in ASP.NET web applications.

Add Image to Word Page Using C#

Add references:











Use corresponding namespaces;

  using RasterEdge.Imaging.Basic;

  using RasterEdge.XDoc.Word;

  using RasterEdge.Imaging.Raster.Core;

It's a demo code for adding image to word page using C#.

DOCXDocument docx = new DOCXDocument(@"C:\1.docx");
BasePage page = docx.GetPage(0);
REImage image = new REImage(@"C:\logo2.jpg");
page.AddImage(image, new Point(100, 100));