On this page you will learn from code samples for programming in VB.NET.Writing of the code to convert xls to txt with spreadsheet sdk in VB.NET can be executed by programmers of any level using ByteScout Data Extraction Suite. Want to convert xls to txt with spreadsheet sdk in your VB.NET app? ByteScout Data Extraction Suite is designed for it. ByteScout Data Extraction Suite is the set that includes 3 SDK products for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK.
The following code snippet for ByteScout Data Extraction Suite works best when you need to quickly convert xls to txt with spreadsheet sdk in your VB.NET application. Simply copy and paste in your VB.NET project or application you and then run your app! Want to see how it works with your data then code testing will allow the function to be tested and work properly.
The trial version of ByteScout Data Extraction Suite can be downloaded for free from our website. It also includes source code samples for VB.NET and other programming languages.
Imports System.Text Imports System.IO Imports Bytescout.Spreadsheet Imports System.Diagnostics Module Module1 Sub Main() ' Create new Spreadsheet from SimpleReport.xls file Dim document = New Spreadsheet() document.LoadFromFile("SimpleReport.xls") ' remove output file if already exists If File.Exists("Output.txt") Then File.Delete("Output.txt") End If ' Save into TXT file document.Workbook.Worksheets(0).SaveAsTXT("Output.txt") ' Close Spreadsheet document.Close() ' open in default spreadsheets viewer/editor Process.Start("Output.txt") End Sub End Module