Spire.XLS 11.9.3

There is a newer version of this package available.
See the version list below for details.
Install-Package Spire.XLS -Version 11.9.3
dotnet add package Spire.XLS --version 11.9.3
<PackageReference Include="Spire.XLS" Version="11.9.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Spire.XLS --version 11.9.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Spire.XLS, 11.9.3"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Spire.XLS as a Cake Addin
#addin nuget:?package=Spire.XLS&version=11.9.3

// Install Spire.XLS as a Cake Tool
#tool nuget:?package=Spire.XLS&version=11.9.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

.NET API for Processing Excel Documents

Product Page | Documentation | Examples | Forum | Temporary License | Customized Demo

Spire.XLS for .NET is a professional Excel .NET API that can be used to create, read, write, convert and print Excel files in any type of .NET ( C#, VB.NET, ASP.NET, .NET Core, .NET 5.0, MonoAndroid and Xamarin.iOS) application without installing Microsoft Office.

The API supports both the old Excel 97-2003 format (.xls) and the new Excel 2007, Excel 2010, Excel 2013, Excel 2016 and Excel 2019 (.xlsx, .xlsb, .xlsm), along with Open Office(.ods) format. It features fast and reliably compared with developing your own spreadsheet manipulation solution or using Microsoft Automation.

100% Standalone .NET API

Spire.XLS for .NET is a 100% standalone Excel .NET library without requiring Microsoft Excel or Microsoft Office to be installed on the system.

Freely Operate Excel Files

Powerful & High Quality Excel File Conversion

Examples

Create an Excel File in C#

using Spire.Xls;
using System.IO;
namespace CreateExcelFiles
{
    class Program
    {

        static void Main(string[] args)
        {
            //A: Dynamically create Excel file and save it to stream
            Workbook wbToStream = new Workbook();
            Worksheet sheet = wbToStream.Worksheets[0];
            sheet.Range["C10"].Text = "The sample demonstrates how to save an Excel workbook to stream.";
            FileStream file_stream = new FileStream("To_stream.xls", FileMode.Create);
            wbToStream.SaveToStream(file_stream);
            file_stream.Close();
            System.Diagnostics.Process.Start("To_stream.xls");

            //B. Load Excel file from stream
            Workbook wbFromStream = new Workbook();
            FileStream fileStream = File.OpenRead("sample.xls");
            fileStream.Seek(0, SeekOrigin.Begin);
            wbFromStream.LoadFromStream(fileStream);
            wbFromStream.SaveToFile("From_stream.xls", ExcelVersion.Version97to2003);
            fileStream.Dispose();
            System.Diagnostics.Process.Start("From_stream.xls");
        }

    }
}

Convert Excel to PDF in C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Spire.Xls;

namespace ToPDF
{
    class Program
    {
        static void Main(string[] args)
        {
            Workbook workbook = new Workbook();
            workbook.LoadFromFile("Sample.xlsx", ExcelVersion.Version2010);
            workbook.SaveToFile("result.pdf", Spire.Xls.FileFormat.PDF);
         }
    }
}

Convert Excel to Image in C#

using Spire.Xls;
namespace Xls2Image

{
    class Program
    {
        static void Main(string[] args)
        {
            Workbook workbook = new Workbook();
            workbook.LoadFromFile(@"..\..\test.xls");
            Worksheet sheet = workbook.Worksheets[0];
            sheet.SaveToImage("sample.jpg");
        }
    }
}

Product Page | Documentation | Examples | Forum | Temporary License | Customized Demo

NuGet packages (9)

Showing the top 5 NuGet packages that depend on Spire.XLS:

Package Downloads
KCore_bfagundes

My personal library to work SAP projects.

JecoreDotNetCommon

ebitoo 前端函数库 测试发布 1

kdb_bfagundes

My personal library to work SAP projects.

Balcony.Framework

Balcony's Framework

ksap_bfagundes

My personal library to work SAP projects.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
11.11.2 1,125 11/25/2021
11.10.5 2,669 10/28/2021
11.10.4 1,107 10/25/2021
11.9.3 4,110 9/16/2021
11.9.2 718 9/14/2021
11.8.0 8,646 8/6/2021
11.7.0 9,499 7/8/2021
11.6.1 6,181 6/10/2021
11.4.6 8,163 4/30/2021
11.4.0 8,776 4/7/2021
11.3.4 6,449 3/12/2021
11.2.6 5,477 2/23/2021
11.2.3 1,683 2/8/2021
11.1.0 4,265 1/22/2021
10.12.0 15,036 12/3/2020
10.11.7 5,099 11/18/2020
10.11.2 1,795 11/6/2020
10.10.6 8,948 10/15/2020
10.9.16 3,473 9/28/2020
10.9.0 10,900 9/2/2020
10.8.3 6,760 8/11/2020
10.7.2 18,053 7/8/2020
10.5.7 14,700 5/21/2020
10.4.9 6,889 4/23/2020
10.3.8 4,933 3/26/2020
10.3.0 20,064 3/2/2020
10.2.8 2,335 2/20/2020
10.1.8 12,905 1/21/2020
10.1.1 4,849 1/8/2020
9.12.20 8,537 12/19/2019
9.11.14 6,168 11/26/2019
9.11.2 5,226 11/8/2019
9.10.12 5,272 10/25/2019
9.10.4 7,228 10/11/2019
9.9.13 6,433 9/26/2019
9.9.5 3,197 9/12/2019
9.9.0 4,037 9/2/2019
9.8.11 2,940 8/23/2019
9.8.5 2,403 8/15/2019
9.7.0 6,702 7/11/2019
9.6.12 2,482 7/1/2019
9.6.7 1,911 6/19/2019
9.6.1 2,608 6/6/2019
9.5.11 1,999 5/23/2019
9.5.6 1,063 5/16/2019
9.5.4 2,060 5/13/2019
9.5.0 2,285 5/1/2019
9.4.6 11,598 4/15/2019
9.4.0 4,611 4/2/2019
9.3.10 9,423 3/21/2019
9.3.4 1,152 3/13/2019
9.2.11 9,361 2/27/2019
9.2.8 1,024 2/21/2019
9.1.22 8,571 2/1/2019
9.1.14 2,163 1/24/2019
9.1.0 3,532 1/10/2019
8.12.11 2,058 12/28/2018
8.12.3 2,146 12/11/2018
8.11.6 5,361 11/21/2018
8.11.2 1,479 11/13/2018
8.10.7 3,899 10/31/2018
8.10.2 4,164 10/12/2018
8.9.8 2,330 9/30/2018
8.9.3 1,419 9/18/2018
8.8.5 2,997 8/29/2018
8.8.1 15,436 8/8/2018
8.8.0 1,604 8/1/2018
8.7.2 1,865 7/12/2018
8.6.6 2,135 6/28/2018
8.6.1 1,919 6/21/2018
8.5.1 4,025 5/11/2018
8.0.0 3,399 2/8/2018
7.12.150 2,348 2/6/2018
7.12.144 5,365 1/12/2018
7.12.140 1,379 12/28/2017
7.12.130 1,484 12/14/2017
7.12.125 1,449 12/4/2017
7.12.109 2,128 11/7/2017
7.12.100 1,630 10/23/2017
7.12.90 4,496 9/28/2017
7.12.76 2,757 8/22/2017
7.12.69 1,629 8/11/2017
7.12.55 3,293 7/18/2017
7.12.43 1,295 7/3/2017
7.12.27 4,216 6/9/2017
7.12.19 2,018 5/26/2017
7.12.11 2,282 5/9/2017
7.12.7 887 5/4/2017
7.12.0 6,961 4/24/2017
7.11.59 5,598 2/28/2017
7.11.49 4,855 1/24/2017

Spire.XLS 11.9.3
New features:
Supports to save Excel as UOS and OFD.