Guide for VB.NET
Core Document Formats
Additional Features

VB.NET Word - Extract Text from Word Document

VB.NET Example for Extracting Text from Microsoft Word Document

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

Our VB.NET Word Processing SDK allows VB.NET developers to extract simple textual content from Word document 2003 to 2010 in .NET applications. It is easy to add text extraction functionalities into your VB.NET programs because this SDK has a user-friendly interface. Text extraction from Word document through VB.NET programming with this SDK saves much time and effort compared with traditional copy and paste.
Related .net document control helps:
asp.net mvc word viewer: ASP.NET Office Word Document Viewer: view Word doc files online using C# in ASP.NET MVC web applications
asp.net mvc pdf editor using c#: ASP.NET MVC PDF Viewer & Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC
c# asp.net excel viewer: ASP.NET Excel Viewer in C# Control (MVC & WebForms): view Office Excel document in web browser.
c# asp.net mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
asp.net view tiff images: ASP.NET Tiff Viewer: view, annotate multipage Tiff images in ASP.NET MVC, WebForms using C# Control
asp.net document viewer example: EdgeDoc:ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online in C#, VB.NET, AS...
c# asp.net pdf editor: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
VB.NET control for extracting text from Word document solves one of the major problems an organization faces when building Word document archives. Word documents are often locked as static images and the data is inaccessible. In this case, it is required to extract text from the Microsoft Word document. And the text content and formatting cannot be changed so as to ensure the document quality.
On this page, we will tell you how to extract text from certain page or certain area of a Word document using VB.NET code with our VB.NET Word Processing Library. For developers who have a demand of extracting text from Word document in Visual C# programming, our C#.NET Word Processing Control should be used. And a detailed guide is also provided for this programming.
VB.NET Word Text Extraction SDK Features
  • Able to extract text from certain page of Word document using VB.NET code
  • Capable of extracting text from certain area of Word document in VB.NET application
  • Can be integrated into Word document text extraction application easily in VB class
  • Entirely preserve text content and formatting of the Word document in VB.NET
  • Complete text extraction from Word document through VB programming at fast speed
How to Extract Text from Word in VB.NET
Textual content can be extracted from a Word document and saved in other files (for example TXT file) for other usage. This part will present an easy solution to extract text from certain page or certain area of a Word document using VB.NET code. You are free to use any VB.NET sample code below to your Word text extraction application.
Before using our Word Processing Control for VB.NET to extract text from Word document, you need to install .NET Framework 2.0 or later versions. Moreover, you may make Windows, XP Windows Vista, Windows Server 2008 and other Windows operating systems accessible. Finally, you may have to install Microsoft Visual Studio 2005 / 2008 / 2010 /2012.

Extract Text from Certain Word Document Page in VB.NET

In general, a Word document may include a lot of contents, such as text, image, table, etc. Some of these contents can be extracted and used in other documents or files. The following VB.NET sample code is designed for developers to extract text from certain page of a Word document.
     Imports System.IO
Imports System.Drawing.Printing
Imports RasterEdge.Imaging
Imports RasterEdge.Imaging.Processing

Dim Word As New RasterEdgeImaging()

Public Sub WordProcessorExtractTextPage()
If True Then
WordInputFile = ("C:/1.docx")
WordPageNumberStart = "0"
WordPageNumberStop = "4"
WordOutputFile = OutputFormat.txt
WordOutputFile = ("C:/extract.txt")
End If
End Sub
word.WordProcessorExtractText (@"C:/1.docx", "0","4", @"C:/extract.txt")

Extract Text from Certain Word Document Area in VB.NET

When extracting text from certain area of a Microsoft Word document, you need to load your local Word document to your VB.NET program at first. Then, you may regulate the area in the Word document to be extracted. Here is a VB.NET example that guides you complete these tasks in an easy way.
     Imports System.IO
Imports System.Drawing.Printing
Imports RasterEdge.Imaging
Imports RasterEdge.Imaging.Processing

Dim Word As New RasterEdgeImaging()

Public Sub WordProcessorExtractTextPage()
If True Then
WordInputFile = ("C:/1.docx")
ExtractedArea = New rectangle(0, 0, 300, 300)
WordOutputFile = OutputFormat.txt
WordOutputFile = ("C:/extract.txt")
End If
End Sub
word.WordProcessorExtractArea(@"C:/1.docx", new rectangle(0, 0, 300, 300), @"C:/extract.txt")
More Word Processing Guides in VB.NET
Apart from extracting text from Word document in VB.NET applications using this Word Processing Control for VB.NET, you are also able to make annotations on Word document through VB.NET programming, convert Word document to other image and document formats in VB.NET, generate or decode linear and 2D barcodes on Word document using VB.NET code and more. All these applications can be finished in a few steps with our detailed guide.
More Tutorials!
Find more user guides with RasteEdge .NET Word 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