Guide for VB.NET
Core Document Formats
Additional Features

VB.NET Word - Convert Word Doc to GIF Image

Convert Word Document to GIF Image with A Simple VB.NET Solution

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

Whenever you want to convert Word document with extension doc or docx to GIF files using VB.NET class, this VB.NET Word Document Conversion Control will help you do that while preserving the original Word document content and layout. If GIF is not your target image format, you can also use this Conversion Control to convert Word document to other formats, such as JPEG, BMP, PNG, etc. Processing speed of Word document to GIF and other formats conversions with this VB.NET Word Conversion SDK is rather fast.
Related .net document control helps: document viewer c#: ASP.NET Document Viewer using C#: Open, View, Annotate, Redact, Convert document files in ASP.NET using C#, HTML5, JQuer... open word document in browser: ASP.NET Office Word Document Viewer: view Word doc files online using C# in ASP.NET MVC web applications tiff viewer control: ASP.NET Tiff Viewer: view, annotate multipage Tiff images in ASP.NET MVC, WebForms using C# Control annotate pdf: ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C# ppt viewer: ASP.NET PowerPoint Document Viewer Control (MVC & WebForms): view ppt, pptx files online in C# using ASP.NET pdf editor control: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents edit pdf image: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#
The VB.NET Word to GIF Conversion Component is a simple and intuitive tool that enables you to convert MS Word document of 2003, 2007 or 2010 version into GIF graphical format in VB.NET programs at a fast speed. A user-friendly interface is provided to ease your Word to GIF conversion work within Visual Basic .NET application.
Our VB.NET Word Document Conversion Control is the most reliable and complete solution for the conversion of Word Document into GIF graphical file. And the following part will tell you the detailed procedures and VB.NET sample code for converting Word Document to GIF image format using Visual Basic language in .NET project.
Convert Word Document to GIF in VB Class
This part has illustrated how to create a VB.NET project in Visual Studio 2005 or later versions and use the following dlls from the free evaluation version of our VB.NET Word Document Conversion Control SDK to easily convert Word document to GIF format. Before using this Conversion SDK, you may make sure you have installed .NET Framework 2.0 or later versions.
  • RasterEdge.Imaging.Basic.dll
  • RasterEdge.Imaging.MSWordDocx.dll
There may be many useful messages on your Word document page and you do not want to lose them when converting the Word document to GIF image format. Our VB.NET Word Document Conversion Library will help you realize this. The following VB.NET sample code can be used to convert certain page or all pages of a Word document to GIF file format in your VB.NET project application.
     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
Dim img As REImage = DirectCast(aPage.ToImage(), REImage)
'translate page to image
'save image
REFile.SaveImageFile(img, FolderName & "output" & pgIdx & ".gif")
Catch generatedExceptionName As Exception
Debug.WriteLine("Fail to display page " & pgIdx)
End Try
End Sub
Convert Word to Other Formats in VB.NET
Word document can be converted to GIF as well as other image and document formats in .NET applications using VB language with our advanced VB.NET Word Document Conversion SDK. It supports to convert Word document to BMP in VB.NET, easily convert MS Word file to JPEG using VB code, convert Word document to SVG image format in VB class, etc.
For C# developers, you may use our C#.NET Word Document Conversion Library to convert Word document into multiple image and document formats in C#.NET applications with an easy solution.
GIF Image Format Overview in VB.NET
Web graphics, especially small images that contains test, are often presented in the Graphic Interchange Format (GIF). One of the superior advantages of the GIF format in VB.NET is its small file size. The image size of GIF is reduced with the lossless data compression technique without any effect on the image quality. GIF image format has become popular because of growth of the Internet. A GIF image is able to include 256 different colors selected from 24-bit RGB color space.
Usually, it is easy to add GIF images into a MS Word document, but it may be difficult to save the Word document as a GIF file in VB.NET applications. Some people try to paste an image of the Word document into a software program which supports saving the file as GIF image format in order to convert the Word document to GIF. However, there is an easier way of converting Microsoft Word document to GIF image format, which is to integrate our VB.NET Word Document Conversion SDK into your conversion project through VB.NET programming.

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