Guide for VB.NET
Core Document Formats
Additional Features

VB.NET Word - Word to BMP Converting

How to Use VB.NET Code to Convert Word Document to BMP Image Format

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

VB.NET Word to BMP Conversion SDK Introduction
Developers are able to easily convert Word document to BMP image format through VB.NET programming with our professional VB.NET Word Document Conversion SDK which supports one or more pages Word document conversion to several file formats. If you want to use C#.NET project to finish Word document to BMP conversion, you may refer to our C# guide for converting Word to BMP. As our Word Document Conversion Control is a standalone component, you will need no additional tool from third party to conduct these conversions.
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 dicom viewer: ASP.NET Dicom Document Viewer Control: view, annotate dicom imaging files online in ASP.NET
Word document files with file extension DOC or DOCX are created by Microsoft Word (the Word document editing software). Bitmap image files with the file extension BMP can be opened by Adobe Photoshop and Paint and other common image editing software types. If you want to convert Microsoft Word document to BMP file format using VB.NET class, you can use our VB.NET Word Document Conversion SDK and refer to this guide page.
How to Convert Word to BMP in VB.NET
Although Word document is widely used in many applications, it is necessary to convert Word document to other image formats (like PNG, GIF and BMP) in some cases. In this part, we will give you an example of converting Word document to BMP through VB.NET programming.

Use VB.NET Project to Convert Word to BMP Preparation

Before using our VB.NET Word Document Conversion Library to convert target Word document to BMP image format in your VB.NET applications, you may need to complete the following tasks.
  • Install any .NET Framework version from 2.0 to 4.5
  • Make Microsoft Visual Studio 2005 or later versions available
  • Install Windows 2000 / XP / Vista / 7 or Windows Server 2000 / 2003 / 2008
  • Add RasterEdge.Imaging.Basic.dll and RasterEdge.Imaging.MSWordDocx.dll to your VB.NET project references

Convert Word Document to BMP in VB.NET Demo Code

After all preparations have done, users can copy the following VB.NET demo code to convert Word document to BMP image format in your project. VB.NET demo code below can be used to convert single-page or multi-page Word document to BMP without any quality loss. Users are able to use the VB.NET demo code without charge.
     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 & ".bmp")
Catch generatedExceptionName As Exception
Debug.WriteLine("Fail to display page " & pgIdx)
End Try
End Sub

Convert Word Document to Other Formats in VB.NET

Our Word Document Conversion Control has the ability of converting Word document to BMP and other document and image formats in VB.NET applications. For different Word document conversion in VB.NET, we provide corresponding user guide in detail.
  • How to convert Word document GIF in VB.NET
  • Guide for converting Word document to PNG using VB code
  • User manual for Word to JPEG conversion in Visual Basic .NET project
  • Example of converting Word file to TIFF format in VB.NET
  • Tutorial of Word to PDF conversion through VB.NET programming
Why to Convert Word to BMP in VB.NET
There may be a time when you need to convert Word document to BMP image format using VB.NET project. In the following two paragraphs, we have described two situations in which Word to BMP conversion is quite necessary.
When using Word document content as the Windows wallpaper, you may have a demand of converting Word document to BMP image format because the Windows operating system regards BMP as the standard bit-mapped graphics format. If you want to convert Word document to BMP image format in Visual Basic .NET applications, this mature VB.NET Word Document Conversion Control can be used.
When sending a Word document including any address to a website page, it is better to convert the Word document to BMP image format using VB.NET programming so that your E-mail will not be treated as spam.

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