Guide for VB.NET
Core Document Formats
Additional Features

VB.NET Word - Word to PNG Conversion DLL

Convert Word Document to PNG Image Format Through VB.NET Programming

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

Our VB.NET Word Document Conversion DLL (evaluation) can be used freely to convert Word document into PNG image format through VB.NET programming. No other additional components are required to assist in converting Word document to PNG (Portable Network Graphics) in VB.NET application if this DLL is used. It also supports converting Word document to other image and document formats, including converting Word to PDF in VB.NET, Word to BMP conversion using VB code, VB.NET conversion from Word to JPEG and so on.
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 pdf editor component: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
asp.net edit pdf image control: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#
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#
Single-page and multi-page Word document can be converted to PNG image format with the easiest VB.NET solution provided by this VB.NET Word Conversion DLL. A high quality PNG file that contains all the information from the original Word document will be generated. VB.NET demo code is offered on this page and you can directly copy it to your VB.NET project to test Word to PNG conversion with our Word Conversion DLL for VB.NET.
Convert Word to PNG in VB.NET Preparation
If you want to follow this guide to convert Word document into PNG image format in .NET application using VB language with our Word Document Conversion DLL for VB.NET, you may need to make some preparations that are stated below in detail.
  • Install .NET Framework 2.0 or later versions and Visual Studio 2005 or above
  • Don't forget to activate the license key after you download our VB.NET Word Conversion SDK trail
  • Add the two dlls (RasterEdge.Imaging.Basic.dll and RasterEdge.Imaging.MSWordDocx.dll) from the trial version of this SDK to your VB.NET project references
Convert Word to PNG in VB.NET Demo Code
Developers are able to use the following VB.NET demo code to convert Word document into PNG image format after preparations described in the above part have been completed. In this demo code, Word document with docx file extension is used. You can also convert Word document with doc file extension into PNG image format with the same method.
     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 & ".png")
Catch generatedExceptionName As Exception
Debug.WriteLine("Fail to display page " & pgIdx)
End Try
Next
End Sub
We also provide C#.NET Word document conversion to PNG file guide with C# sample code to help developers who are willing to convert Word document into PNG in Visual C#.NET applications. To finish this, you may need to download our Word Document Conversion Library for C#.NET.
Word Doc and PNG Image Introduction in VB.NET
There are three types of Word documents supported by our VB.NET Word to PNG Conversion Control: Word 2003, Word 2007 and Word 2010. Word 2003 has a stronger protection by adding an option that allows advanced users to choose a Cryptographic Service Provider. If a strong CSP is chosen, a password can't be removed from the Word document. Word 2007 is equipped with a more secure document protection by utilizing the modern Advanced Encryption Standard that converts a password to a 128-bit key using a SHA-1 hash function 50000 times. The number of SHA-1 conversions is increased up to 100000 times to improve Word 2010 protection level.
PNG format in VB.NET which supports palettes of 24-bit RGB colors, RGB images or greyscale images, is used to store raster images on computers. Indexed colors and lossless compression are used in the PNG file. PNG images include an 8-bit transparency channel, which allows the colors in the image to fade from opaque to transparent. PNG is intended to be applied to transfer images on the Internet, not professional graphics.
After getting more information on Word document and PNG image format from the above two paragraphs, you may use our VB.NET Word to PNG Conversion SDK and follow the detailed guide to finish the conversion work if you have a demand of converting Word document from or to PNG image format.


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