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.

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

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Spreadsheet SDK Home Page

Explore ByteScout Spreadsheet SDK Documentation

Explore Samples

Sign Up for ByteScout Spreadsheet SDK 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 Spreadsheet SDK Home Page

Explore ByteScout Spreadsheet SDK Documentation

Explore Samples

Sign Up for ByteScout Spreadsheet SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next