Every ByteScout tool includes simple example C# source codes that you can get here or in the folder with installed ByteScout product. What is ByteScout Data Extraction Suite? It is the bundle that includes three SDK tools for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK. It can help you to convert xls to txt with spreadsheet sdk in your C# application.
This prolific sample source code in C# for ByteScout Data Extraction Suite contains various functions and other necessary options you should do calling the API to convert xls to txt with spreadsheet sdk. Simply copy and paste in your C# project or application you and then run your app! Further improvement of the code will make it more robust.
Trial version of ByteScout Data Extraction Suite is available for free. Source code samples are included to help you with your C# app.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
using System; using System.Collections.Generic; using System.IO; using System.Text; using Bytescout.Spreadsheet; using System.Diagnostics; namespace Converting_XLS_to_TXT { class Program { static void Main(string[] args) { // Create new Spreadsheet from SimpleReport.xls file Spreadsheet document = new Spreadsheet(); document.LoadFromFile("SimpleReport.xls"); // delete output file if exists already if (File.Exists("SimpleReport.txt")){ File.Delete("SimpleReport.txt"); } // save into TXT document.Workbook.Worksheets[0].SaveAsTXT("SimpleReport.txt"); // open output document in default viewer Process.Start("SimpleReport.txt"); } } }
60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page
Explore ByteScout Data Extraction Suite Documentation
Explore Samples
Sign Up for ByteScout Data Extraction Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page
Explore ByteScout Data Extraction Suite Documentation
Explore Samples
Sign Up for ByteScout Data Extraction Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: