Guide for VB.NET
Core Document Formats
Additional Features

VB.NET Word - Image Adding Guide in VB.NET

VB.NET Demo Code to Add & Insert Image / Photo into Word DOCX Page

Home > .NET Imaging SDK > VB.NET > Add Image to Word Page
To get started with DocImage SDK for .NET, you are supposed to read VB.NET Imaging: Get Started first!

Do you need to add and insert image into Word page programmatically without having any dependency on Microsoft Office tools? Do you need to burn an image on desired location of source Word page using VB.NET code? If you have one yes for either of these two questions, please read following context.
Related .net document control helps: tiff viewer: ASP.NET Tiff Viewer: view, annotate multipage Tiff images in ASP.NET MVC, WebForms using C# Control mvc pdf editor: ASP.NET MVC PDF Viewer & Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC pdf viewer: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET edit pdf text: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET powerpoint viewer: ASP.NET PowerPoint Document Viewer Control (MVC & WebForms): view ppt, pptx files online in C# using ASP.NET text file viewer: ASP.NET Text file viewer in MVC, WebForms: Open, view, annotate, convert txt files in C# ASP.NET edit pdf image: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#
  • VB.NET APIs for developers to insert image to Word page with accurate location
  • VB.NET demo code to demonstrate how to add & burn image on Word file page
  • Benefits of using RasterEdge VB.NET Word image inserting control plug-in
API for Word Image Adding
This VB.NET image adding control SDK offers easy-to-use and mature API for VB programmers to insert and burn image on Word document page.
' API for adding and burning image to DOCXPage.
Private Sub AddImage(img As REImage, positionX As Single, positionY As Single, compression As WordCompression) Implements DOCXPage.AddImage
End Sub
API Explanation:
  • DOCXPage is a high-level model of one Word page, which exists as a representation of one Word document page. DOCXDocument is used as an abstraction of one Word file by RasterEdge VB.NET Word Reading & Manipulating SDK.
  • AddImage: Using this method, VB.NET developers can not only insert image into specified DOCXPage but also burn embedded image on desired location.
  • PositionX & PositionY: The Word coordinate system allows VB.NET developers to insert image into accurate position by specifying X & Y location.
  • WordCompression: As this Word image inserting control for VB.NET supports several compression mechanisms for embedded images (supported image formats contain png, gif, jpeg, bmp, tiff, etc.), developers can specify one compression mechanism or just leave it to the managed code to decide.
Demo Code for Word Image Insertion
Here we list a snippet of VB.NET code to illustrate how to add & burn image on source Word file. One thing that needs to be mentioned here is that once target image is added to desired DOCXPage, it will automatically create a REImage and burn it on specified location without disturbing the rest of the document.
''' <summary >
''' Add and Burn REImage to DOCXPage.
''' </summary>
''' <param name="page"></param>
''' <param name="img"></param>
''' <param name="x"></param>
''' <param name="y"></param>
''' <param name="compression"></param>
Public Sub AddImageToPage(page As DOCXPage, img As REImage, x As Single, y As Single, compression As WordCompression)
page.AddImage(img, x, y, compression)
End Sub
Choose RasterEdge Word Image Adding Control
This section aims to answer the question of why do we need to use RasterEdge VB.NET Word image inserting control add-on. To better answer this question, we expressly list the main features of this VB.NET Word image inserting control add-on here.

Allow Developers to Conduct Other Word Page Processing Functions

This Word image adding control also contains other advanced Word page processing VB.NET APIs, like page adding, deletion and page order reorganization.

Able to Add Image of Several Formats to Source Word Document File

Common image formats, including gif, jpeg, png, tiff and bmp, are compatible with this VB.NET Word image inserting control.

Free to Adjust the Imaging Parameters of Embedded Image in Word

Coupled with image processing control, this Word image inserting control allows VB.NET developers to edit and process the image that will be added to source Word page.

Easy to Install and Stable to Use

As this VB.NET Word image adding SDK encodes all Word image inserting features into several compact dlls, developers can successfully integrate this SDK into VB.NET application by adding reference directly.

Without any Dependency on Other External Word Processing Add-ons

As this VB.NET Word image inserting control add-on has its own independent Word interpreter, it allows developers to process Word page without using other similar products.

Support Processing Multiple Versions of Word Document File Using VB.NET

As Word file that ends with .docx is fully supported by this VB.NET Word image adding control SDK, Word documents that are created by Microsoft Word 2007 or later versions are all compatible.

Support Adding Image to Source Word Page Using C# Code

Developed in .NET Framework, this Word image adding toolkit also allows developers to insert image into Word page using Visual C# .NET code using Microsoft Visual Studio 2005 or later versions.

Recommend this to Google+ is professional provider of ASP.NET MVC Document Viewer, ASP.NET PDF Viewer, MVC PDF Viewer document, content and imaging solutions, available for ASP.NET AJAX, Silverlight, Windows Forms as well as WPF. We are dedicated to provide powerful & profession imaging controls, PDF document, image to pdf files and components for capturing, viewing, processing, converting, compressing and stroing images, documents and more.

©2000-2017 Raster