Guide for VB.NET
Core Document Formats
Additional Features

VB.NET Word - Use VB to Convert Word to JPEG

Visual Basic Sample Codes to Use Word to Jpeg Converter in .NET Application

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

VB.NET Word to Jpeg Image Converter Overview
MS Word to Jpeg image converter is an image conversion function included in the RasterEdge .NET, VB.NET Imaging Library SDK, which is developed to provide users with easier access to edit and process images in their VB.NET application. With this converter integrated in your VB.NET imaging program, you will find that it has never been so easy to convert a Microsoft Office Word document into a Jpeg / Jpg image. From now on you can forget about copying and pasting the word screenshot for image conversion. Just start now to download the free evaluation package for a test!
Related .net document control helps:
asp.net mvc pdf editor control: ASP.NET MVC PDF Viewer & Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC
asp.net annotate pdf control: ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C#
asp.net edit pdf text control: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET
asp.net edit pdf image control: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#
asp.net view excel in browser: ASP.NET Excel Viewer in C# Control (MVC & WebForms): view Office Excel document in web browser.
asp.net pdf document viewer c#: ASP.NET PDF Document Viewer in C#: open, display, view, annotate, redact Adobe PDF files online in ASP.NET MVC & WebForm...
asp.net document viewer example: EdgeDoc:ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online in C#, VB.NET, AS...
This guiding page will provide users with detailed examples and Visual Basic demo codes for converting a MS Word doc into Jpeg image format in your .NET image processing application. Below are the sections that are going to be discussed:
  • Visual Basic MS Word to Jpeg image converter function list
  • Visual Basic method for converting an MS Word doc into Jpeg image format
  • Visual Basic examples and demo codes to convert MS Word to Jpg image in .NET project
VB.NET MS Word to Jpeg Converter Function List
  • Designed for .NET development environment such as Microsoft Visual Studio
  • Easy to be integrated into VB.NET projects like Windows Form, ASP.NET Web application and VB.NET Class Library
  • Directly convert VB.NET MS Word doc into high quality jpeg / jpg images
  • Convert a single page or a batch of Word pages into Jpeg image format(s) using VB.NET codings
  • Full Visual Basic sample codes are provided to save Word page as Jpeg to your local file
  • Fast processing speed for efficient Word to Jpeg conversion in VB.NET
  • Able to turn each page from an MS Word doc into independent Jpeg image file(s) correspondingly
VB.NET Method to Convert Word to Jpeg
Demonstrated in the code tab below is the Visual Basic method for converting an MS Word document into Jpeg image format. This conversion is a document processing feature of RasterEdge Image SDK for .NET, which includes a basic image editing control library and an MS Word document processor, in order for you to decode Word and save to Jpeg, as well as other image formats.
Public Shared Sub SaveImageFile(image As REImage, filePath As String)
End Sub
Public Shared Sub SaveImageFile(image As REImage, filePath As String, enc As BaseEncoder)
End Sub
VB.NET Sample Codes to Convert Word to Jpeg
We have provided a complete VB.NET example below on how to convert a local Microsoft Word document into Jpeg image format(s). The Visual Basic .NET sample codes will guide you to load and open your MS Word doc, get all of its pages, and translate them to RasterEdge images. Then the images will be converted into Jpeg image format and then saved to your defined local directory. We have also included VB.NET sample codes to catch exceptions during the Word to Jpeg conversion.
When you have created an VB image editing project in your Microsoft Visual Studio, you can freely copy VB demo codes below to your program and debug it. You will find each one of the page from your sample Word doc "Sample.docx" has been converted into an individual Jpeg image / picture.
Public Shared FolderName As String = "c:/"

Private Sub button1_Click(sender As Object, e As EventArgs)
Dim fileName As String = FolderName & "Sample.docx"

Dim doc As REDocument = REFile.OpenDocumentFile(fileName, New DOCXDecoder())
'use DOCXDecoder open a word file
Dim pageCount As Integer = doc.GetPageCount()
'get word's page count
For pgIdx As Integer = 0 To pageCount - 1
Dim aPage As BasePage = doc.GetPage(pgIdx)
'get page from REDocument
Try
Dim img As REImage = DirectCast(aPage.ToImage(), REImage)
'translate page to image
'save image
REFile.SaveImageFile(img, FolderName & "output" & pgIdx & ".jpeg")
Catch generatedExceptionName As Exception
Debug.WriteLine("Fail to display page " & pgIdx)
End Try
Next
End Sub


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