Guide for C#
Core Document Formats
Word to REImage
Additional Features

C# Word - How to Convert Word to REImage

Use C# Code to Render Office Word Document to REImage Object(s) in C#.NET

Visual C#
Home > .NET Imaging SDK > C# > Convert Document to REImage
If this is your first time to use our DocImageSDK, we strongly suggest you reading How to Start first!

Word Rendering & Converting in C#.NET
RasterEdge C#.NET Word Conversion SDK is a mature document converter that enables developers and end users to convert Word document of docx file extension to other image and document formats. When you use this SDK for Word conversion to other formats, loaded Word document is rendered to REImage (a self-defined image object) in the first place. Then, it can be converted to other image and document formats using our well-designed image conversion APIs. In other words, REImage is served as an intermediate transit for Word document conversion in Visual C#.NET programming.
Related .net document control helps:
c# asp.net mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
asp.net mvc pdf editor using c#: ASP.NET MVC PDF Viewer & Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC
c# asp.net powerpoint viewer: ASP.NET PowerPoint Document Viewer Control (MVC & WebForms): view ppt, pptx files online in C# using ASP.NET
c# asp.net text file viewer: ASP.NET Text file viewer in MVC, WebForms: Open, view, annotate, convert txt files in C# ASP.NET
c# asp.net tiff viewer: ASP.NET Tiff Viewer: view, annotate multipage Tiff images in ASP.NET MVC, WebForms using C# Control
asp.net edit pdf page using c#: ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C#
c# asp.net dicom viewer: ASP.NET Dicom Document Viewer Control: view, annotate dicom imaging files online in ASP.NET
This Word Conversion SDK for C#.NET enables you not only to convert Microsoft Word document to commonly used image and document formats, but also to customize conversion options in C#.NET project. As a result, you will get desired document or image format while preserving content of the original Word document.
We kindly offer this guide page to help you easily and quickly complete Word to REImage object conversion in C#.NET and below is the page navigation.
  • Mature and useful functions of C#.NET Word Conversion Control
  • DLLs to be used in your Visual C# project for rendering Word to REImage object
  • APIs and C# demo code for Word document rendering
  • Other C# tutorials for Word document rendering to other file formats
C#.NET Word Doc Rendering Functions
  • Support Office Word document version 2007 and above versions
  • Support implementing Word document rendering to REImage object in C#.NET Windows and web applications
  • Easy to render Microsoft Word document to REImage object/collection with a few lines of C# demo code
  • Quick to converting REImage to multiple image and document formats in C#.NET class
  • Provide permanent and cost-effective license for C#.NET Word Document Converter Add-on
Assemblies for C# Word Rendering to Image Object
Add the following small-sized DLLs to your Visual C#.NET project and you will be able to render your target Word document to image object (REImage) for further conversion.
  • RasterEdge.Imaging.Basic.dll
  • RasterEdge.Imaging.Basic.Codec.dll
  • RasterEdge.Imaging.MSWordDocx.dll
  • RasterEdge.Imaging.PDF.dll (only required when converting Word to PDF)
APIs & C# Code for Word Rendering to REImage Object
Using REImage as an intermediate transit, you can render Word document (page) to different file formats. There are two steps implementation: render Word document to get a REImage collection/object & use image conversion APIs to transform REImage to other image or document formats. In the following part, we will give you detailed APIs and C# sample code for rendering Microsoft Word document to REImage.

C# APIs for Word Document Rendering to Image Object

REImage ConvertToImage();
REImage ConvertToImage(float zoomValue);
REImage ConvertToImage(int targetResolution);
REImage ConvertToImage(Size targetSize);
REImage ConvertToImageFitWidth(int width);

Visual C# Code for Rendering Microsoft Word Document to Image Object

// load Word document
DOCXDocument doc = new DOCXDocument(@"c:\sample.docx");
string thumbnailDirectory = @"c:\thumbnail";

int pageCount = doc.GetPageCount();
for (int i = 0; i < pageCount; i++)
{
// get Word page
DOCXPage page = (DOCXPage)doc.GetPage(i);

// generate thumnail image of 50 pixel wide and 100 pixel high
REImage img = page.ConvertToImage(new Size(50, 100));

// save thumnail images of Word pages under the directory
img.Save(ImageType.PNG, thumbnailDirectory + @"\sample" + i + @".png");
}
Render and Convert Word to Other File Formats
C#.NET Word Conversion SDK makes it possible for you to render Word document to REImage (RasterEdge defined image object) and convert it to other image and document formats in Visual C#.NET, such as BMP, GIF, JPEG, PNG, TIFF, SVG, PDF, and so on. We provide step-by-step tutorials here for converting Microsoft Word document to supportive formats. In addition, you can also directly render Word document to Bitmap (.NET Framework class) and convert it to other file formats.


Recommend this to Google+


RasterEdge.com 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 Edge.com