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

ByteScout Spreadsheet SDK – C# – Convert XLS to CSV

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

How to convert XLS to CSV in C# using ByteScout Spreadsheet SDK

The tutorial shows how to convert XLS to CSV in C#

Source code documentation samples provide quick and easy way to add a required functionality into your application. ByteScout Spreadsheet SDK: the library (SDK) that is capable of writing, reading, modifying and calculating Excel and CSV spreadsheets. Most popular formulas can be calculated and reculculated with Excel installed. You may import or export data to and from CSV, XML, JSON as well as to and from databases, arrays. It can convert XLS to CSV in C#.

You will save a lot of time on writing and testing code as you may just take the C# code from ByteScout Spreadsheet SDK for convert XLS to CSV below and use it in your application. Just copy and paste the code into your C# application’s code and follow the instruction. 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.

You can download free trial version of ByteScout Spreadsheet SDK from our website to see and try many others source code samples for C#.

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

Program.cs
      
using System; using System.Collections.Generic; using System.Text; using Bytescout.Spreadsheet; using System.IO; using System.Diagnostics; namespace Converting_XLS_to_CSV { class Program { static void Main(string[] args) { Spreadsheet document = new Spreadsheet(); document.LoadFromFile("SimpleReport.xls"); // delete output file if exists already if (File.Exists("SimpleReport.csv")){ File.Delete("SimpleReport.csv"); } document.Workbook.Worksheets[0].SaveAsCSV("SimpleReport.csv"); document.Close(); // open output document in default viewer Process.Start("SimpleReport.csv"); } } }

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

VIDEO

ON-PREMISE VERSION INFORMATION

Get 60 Day Free Trial or Visit ByteScout Spreadsheet SDK Home Page

Explore ByteScout Spreadsheet SDK Documentation

Get ByteScout Spreadsheet SDK Free Training

WEB API

Get Your Free API Key

Explore Web API Documentation

Tutorials:

prev
next