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 file viewer: ASP.NET Document Viewer Control in C#: View, Annotate, Redact web document files in ASP.NET using C#
file redact asp.net: Redact document ASP.NET: add, delete, apply redaction on PDF files in web browser using C#.net
asp.net edit pdf page control: ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C#
asp.net redact pdf control: ASP.NET Redact PDF Document Control: redact, remove PDF text, images in web browser using C# ASP.NET
asp.net convert pdf control: ASP.NET Convert PDF Control: Convert, export PDF to Word, HTML, Tiff files in C# ASP.NET
asp.net sharepoint pdf editor control: ASP.NET SharePoint PDF Editor Control: view, edit, annotate, redact PDF document in SharePoint sites
file annotation asp.net: ASP.NET Document Annotation Control: text comment, drawing on files online using ASP.NET component

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));