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

ByteScout Spreadsheet SDK – C# – Convert XLS to XLSX

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

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

This tutorial will show how to convert XLS to XLSX in C#

Learn how to convert XLS to XLSX in C# with this source code sample. What is ByteScout Spreadsheet SDK? It 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 help you to convert XLS to XLSX in your C# application.

The SDK samples like this one below explain how to quickly make your application do convert XLS to XLSX in C# with the help of ByteScout Spreadsheet SDK. Just copy and paste the code into your C# application’s code and follow the instruction. You can use these C# sample examples in one or many applications.

ByteScout Spreadsheet SDK free trial version is available on our website. C# and other programming languages are supported.

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 System.IO; using Bytescout.Spreadsheet; using System.Diagnostics; namespace CSharp { class Program { static void Main(string[] args) { // Open existing XLS file Spreadsheet spreadsheet = new Spreadsheet(); spreadsheet.LoadFromFile("Input.xls"); // delete output file if exists already if (File.Exists("Output.xlsx")){ File.Delete("Output.xlsx"); } // Save document spreadsheet.SaveAs("Output.xlsx"); // Close Spreadsheet spreadsheet.Close(); // open generated XLSX document in default program Process.Start("Output.xlsx"); } } }

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