ByteScout Spreadsheet SDK - C# - Convert XLS to TXT - ByteScout

ByteScout Spreadsheet SDK – C# – Convert XLS to TXT

  • Home
  • /
  • Articles
  • /
  • ByteScout Spreadsheet SDK – C# – Convert XLS to TXT

How to convert XLS to TXT in C# with ByteScout Spreadsheet SDK

The tutorial below will demonstrate how to convert XLS to TXT in C#

Convert XLS to TXT is easy to implement in C# if you use these source codes below. ByteScout Spreadsheet SDK is the SDK that can write and read, modify and calculate Excel and CSV spreadsheets. Most popular formulas are supported. You may import or export data to and from CSV, XML, JSON as well as to and from databases, arrays. It can be used to convert XLS to TXT using C#.

The SDK samples like this one below explain how to quickly make your application do convert XLS to TXT in C# with the help of ByteScout Spreadsheet SDK. This C# sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! Detailed tutorials and documentation are available along with installed ByteScout Spreadsheet SDK if you’d like to dive deeper into the topic and the details of the API.

Trial version of ByteScout Spreadsheet SDK can be downloaded for free from our website. It also includes source code samples for C# and other programming languages.

Try ByteScout Spreadsheet SDK today: Get 60 Day Free Trial or sign up for Web API

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

Try ByteScout Spreadsheet SDK today: 60 Day Free Trial (on-premise version) or sign up for Web API (on demand version)

VIDEO

ON-PREMISE VERSION

Get 60 Day Free Trial or Visit ByteScout Spreadsheet SDK page

Explore ByteScout Spreadsheet SDK documentation

WEB API

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next