Guide for VB.NET
Core Document Formats
Word to TIFF
Additional Features

VB.NET Word - Convert Word to TIFF Using VB

How to Complete Word to TIFF Conversion Using VB.NET Demo Code

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

How to convert & render Word .docx document file into TIFF image format in high quality programmatically? To help developers solve this problem, we expressly design this VB.NET Word to TIFF converting component add-on which can convert source multi-page Word file into a list of single-page TIFF files or a corresponding multi-page TIFF file using VB.NET code.
Related .net document control helps:
asp.net annotate pdf using c#: ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C#
c# asp.net mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
asp.net edit pdf text using c#: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET
asp.net sharepoint document viewer open source: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
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...
c# asp.net text file viewer: ASP.NET Text file viewer in MVC, WebForms: Open, view, annotate, convert txt files in C# ASP.NET
asp.net mvc word viewer: ASP.NET Office Word Document Viewer: view Word doc files online using C# in ASP.NET MVC web applications
From this VB.NET Word to TIFF converting tutorial page, you will find answers to following questions.
  • What VB.NET APIs will be used in the Word to TIFF conversion applications?
  • Is there any VB.NET demo code that I can use to convert Word to TIFF image file?
Mature APIs
Before you use following VB.NET Word to TIFF converting APIs, it is highly recommended to have a general grasp of the whole VB.NET Word to TIFF conversion process. Now we divide this VB.NET Word to TIFF converting process into following several steps.
  1. Create a DOCXDocument (DOCXDocument is a programming class that is defined by VB.NET Word converter add-on to represent one in-memory Word document file in .NET Framework 2.0 & later versions) object by decoding source Word file using this VB.NET Word to TIFF converter control. The target Word file should be created by Microsoft Word 2007 or later versions and it can be stored in the form of stream or string;
  2. Get one or a list of DOCXPage instances (This DOCXPage class, derived from REPage, is used as an abstraction to display one Word page of DOCXDocument object) from decoded DOCXDocument object;
  3. Render one or multiple selected DOCXPage instances into REImage collection. All RasterEdge VB.NET Word conversion related applications have to go through the step of rendering Word page to image object REImage. And this process can be counted as an intermediary step of the whole VB.NET Word to TIFF converting application;
  4. Construct TIFFDocument (Similar to DOCXDocument, TIFFDocument class is used as a constructor to display one in-memory TIFF image file) object using above rendered REImage collection. As this VB.NET Word to TIFF converter library add-on contains several TIFF image format supported compression mechanisms, developers are allowed to select desired compression method for each TIFF page;
  5. Re-encode converted TIFFDocument object into memory stream or .tif image format.
Following is a complete list of VB.NET APIs that will be used in the .NET Word to TIFF converting application.
''' Render Word document to get a REImage collection, or choose a specific Word page to render
Private Sub New(imgs As List(Of REImage))
End Sub
Private Function GetPage(pageIndex As Integer) As BasePage Implements DOCXDocument.GetPage
End Function
Private Function toImage() As BaseImage Implements DOCXPage.toImage
End Function
Private Function toImage(width As Integer, height As Integer) As BaseImage Implements DOCXPage.toImage
End Function

''' Convert rendered REImage into TIFF image format using image converting API
Private Sub Convert(s As Stream, format As ImageFormat) Implements REImage.Convert
End Sub
VB.NET Demo Code
This VB.NET Word to TIFF converting control add-on allows developers to convert Word file to TIFF image while preserving the original Word information. In the whole VB.NET Word to TIFF image converting application, no external Word document editing controls like Microsoft Word will be required.
Here we specifically offer a VB.NET sample code, using which you can easily convert a multi-page Word .docx document file into a multi-page TIFF file. One thing that needs to be noted here is that this VB.NET Word to TIFF image converting component add-on also owns the APIs to set Word to TIFF image converting & rendering options, like image resolution and bit depth.
Public Function FromDOCXToTIFF(wordFilePath As [String]) As TIFFDocument
Dim imageCollection As New List(Of REImage)()
Using doc As New DOCXDocument(wordFilePath)
'Render DOCXPage to REImage
For i As Integer = 0 To doc.GetPageCount() - 1
imageCollection.Add(DirectCast(doc.GetPage(i).ToImage(), REImage))

Next
End Using

' Construct TIFFDocument from image obtained from rendering DOCXPage
return newTIFFDocument(imageCollection)

' You can also specify which compression to use for each tiff page if you have a preferred one
' List<TIFFCompression> tifCompressionList = new List<TIFFCompression>()
' tifCompressionList.Add(TIFFCompression.CCITT1D)
' return new TIFFDocument(imageCollection,tifCompressionList)
End Function
After you successfully convert Word document to TIFF image file using our VB.NET Word to TIFF conversion component, you are also allowed to read & process converted TIFF file, like page insertion, page deletion and page order re-organization.
If you have any problem in testing above VB.NET Word to TIFF converting demo code, please free to contact us and we will offer you an effective solution in the least time. Besides this VB.NET Word to TIFF image converting tutorial page, RasterEdge also offers Visual C# .NET programming guide on how to convert Word to TIFF image format using C# code.
More Tutorials!
Find more user guides with RasteEdge .NET PDF SDK using VB.NET sample codings!


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