ByteScout Barcode Suite - C# - Convert xls to txt with spreadsheet sdk - ByteScout

ByteScout Barcode Suite – C# – Convert xls to txt with spreadsheet sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Barcode Suite – C# – Convert xls to txt with spreadsheet sdk

How to convert xls to txt with spreadsheet sdk in C# with ByteScout Barcode Suite

Learn to convert xls to txt with spreadsheet sdk in C#

The coding instructions are formulated to help you to try-out the features without the requirement to write your own code. ByteScout Barcode Suite can convert xls to txt with spreadsheet sdk. It can be applied from C#. ByteScout Barcode Suite is the bundle that privides 3 SDK products to generate barcodes (Barcode SDK), read barcodes (Barcode Reaer SDK) and read and write spreadsheets (Spreadsheet SDK).

The SDK samples given below describe how to quickly make your application do convert xls to txt with spreadsheet sdk in C# with the help of ByteScout Barcode Suite. Just copy and paste the code into your C# application’s code and follow the instructions. Further improvement of the code will make it more robust.

Trial version of ByteScout Barcode 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)

Program.cs
      
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"); } } }

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Barcode Suite Home Page

Explore ByteScout Barcode Suite Documentation

Explore Samples

Sign Up for ByteScout Barcode Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Barcode Suite Home Page

Explore ByteScout Barcode Suite Documentation

Explore Samples

Sign Up for ByteScout Barcode Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next