Spire.XLS 12.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Spire.XLS --version 12.1.0
NuGet\Install-Package Spire.XLS -Version 12.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Spire.XLS" Version="12.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Spire.XLS --version 12.1.0
#r "nuget: Spire.XLS, 12.1.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. 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=12.1.0

// Install Spire.XLS as a Cake Tool
#tool nuget:?package=Spire.XLS&version=12.1.0

.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

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 is compatible.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid is compatible. 
Xamarin.iOS xamarinios is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (14)

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

Package Downloads
Spire.Office

Spire.Office for .NET is a combination of Enterprise-Level Office .NET components offered by E-iceblue. It includes Spire.Doc, Spire XLS, Spire.Presentation, Spire.PDF, Spire.DataExport, Spire.PDFViewer, Spire.DocViewer, Spire.Email and Spire.BarCode. Spire.Office contains the most up-to-date versions of the above .NET components. From Spire.Office 3.10.1, Spire.Office supports to work on .NET Core,.NET Standard, Xamarin. With Spire.Office for .NET, developers can create a wide range of applications. It enables developers to open, create, modify, convert, print, View MS Word, Excel, PowerPoint and PDF documents. Furthermore, it allows users to export data to popular files such as MS Word/Excel/RTF/Access, PowerPoint, PDF, XPS, HTML, XML, Text, CSV, DBF, Clipboard, SYLK, etc. As an independent Office .NET component, Spire.Office doesn't need Microsoft Office to be installed on neither the development nor target systems. In addition, it is a better alternative to MS Office Automation in terms of security, stability, scalability, speed, price and features. Spire.Office for .NET can be linked into any type of a 32-bit or 64-bit .NET application including ASP.NET, Web Services and WinForms for .NET Framework version 2.0 to 4.5, .NET Core, .NET standard 2.0

KCore_bfagundes

My personal library to work SAP projects.

HBInformationBase

Huabin science and technology basic information database

Balcony.Framework

Balcony's Framework

Nvideo.Infrastructure

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
14.2.1 4,385 2/5/2024
14.1.0 5,499 1/5/2024
13.12.0 4,724 12/12/2023
13.11.4 6,063 11/24/2023
13.10.1 9,739 10/17/2023
13.9.1 12,137 9/14/2023
13.8.9 7,278 8/25/2023
13.8.0 37,901 8/2/2023
13.7.0 26,868 7/4/2023
13.6.0 8,617 6/14/2023
13.5.6 17,389 6/1/2023
13.5.0 12,301 5/12/2023
13.4.0 14,658 4/10/2023
13.3.2 19,171 3/15/2023
13.2.4 28,683 2/16/2023
13.1.1 31,502 1/17/2023
12.12.3 32,628 12/23/2022
12.11.3 27,717 11/25/2022
12.10.1 31,025 10/20/2022
12.9.2 43,066 9/23/2022
12.8.1 37,674 8/17/2022
12.7.1 28,869 7/13/2022
12.6.1 31,813 6/13/2022
12.5.3 12,476 5/26/2022
12.5.1 11,658 5/13/2022
12.4.1 23,426 4/15/2022
12.3.8 52,441 3/23/2022
12.3.2 12,310 3/4/2022
12.1.0 23,019 1/24/2022
11.12.2 37,235 12/17/2021
11.11.2 30,711 11/25/2021
11.10.5 113,885 10/28/2021
11.10.4 21,796 10/25/2021
11.9.3 34,642 9/16/2021
11.9.2 16,222 9/14/2021
11.8.0 32,819 8/6/2021
11.7.0 21,884 7/8/2021
11.6.1 15,848 6/10/2021
11.4.6 23,516 4/30/2021
11.4.0 27,829 4/7/2021
11.3.4 16,704 3/12/2021
11.2.6 21,943 2/23/2021
11.2.3 6,913 2/8/2021
11.1.0 15,639 1/22/2021
10.12.0 37,423 12/3/2020
10.11.7 10,310 11/18/2020
10.11.2 5,965 11/6/2020
10.10.6 22,712 10/15/2020
10.9.16 7,630 9/28/2020
10.9.0 20,646 9/2/2020
10.8.3 12,078 8/11/2020
10.7.2 39,105 7/8/2020
10.5.7 41,356 5/21/2020
10.4.9 17,977 4/23/2020
10.3.8 11,611 3/26/2020
10.3.0 51,373 3/2/2020
10.2.8 7,846 2/20/2020
10.1.8 28,205 1/21/2020
10.1.1 11,801 1/8/2020
9.12.20 22,020 12/19/2019
9.11.14 15,849 11/26/2019
9.11.2 14,148 11/8/2019
9.10.12 13,553 10/25/2019
9.10.4 9,484 10/11/2019
9.9.13 10,562 9/26/2019
9.9.5 10,921 9/12/2019
9.9.0 9,179 9/2/2019
9.8.11 6,908 8/23/2019
9.8.5 6,247 8/15/2019
9.7.0 14,798 7/11/2019
9.6.12 6,119 7/1/2019
9.6.7 5,002 6/19/2019
9.6.1 5,231 6/6/2019
9.5.11 5,107 5/23/2019
9.5.6 3,648 5/16/2019
9.5.4 5,488 5/13/2019
9.5.0 6,255 5/1/2019
9.4.6 25,520 4/15/2019
9.4.0 15,650 4/2/2019
9.3.10 15,580 3/21/2019
9.3.4 3,278 3/13/2019
9.2.11 21,530 2/27/2019
9.2.8 3,996 2/21/2019
9.1.22 18,047 2/1/2019
9.1.14 4,470 1/24/2019
9.1.0 10,806 1/10/2019
8.12.11 9,960 12/28/2018
8.12.3 6,460 12/11/2018
8.11.6 12,761 11/21/2018
8.11.2 4,253 11/13/2018
8.10.7 6,512 10/31/2018
8.10.2 8,719 10/12/2018
8.9.8 5,775 9/30/2018
8.9.3 4,963 9/18/2018
8.8.5 5,699 8/29/2018
8.8.1 32,805 8/8/2018
8.8.0 3,630 8/1/2018
8.7.2 4,480 7/12/2018
8.6.6 5,837 6/28/2018
8.6.1 9,697 6/21/2018
8.5.1 6,737 5/11/2018
8.0.0 6,891 2/8/2018
7.12.150 6,648 2/6/2018
7.12.144 15,457 1/12/2018
7.12.140 4,539 12/28/2017
7.12.130 3,761 12/14/2017
7.12.125 4,528 12/4/2017
7.12.109 4,313 11/7/2017
7.12.100 3,438 10/23/2017
7.12.90 6,743 9/28/2017
7.12.76 5,935 8/22/2017
7.12.69 3,827 8/11/2017
7.12.55 5,057 7/18/2017
7.12.43 2,799 7/3/2017
7.12.27 7,535 6/9/2017
7.12.19 5,098 5/26/2017
7.12.11 5,382 5/9/2017
7.12.7 3,357 5/4/2017
7.12.0 13,555 4/24/2017
7.11.59 12,628 2/28/2017
7.11.49 8,323 1/24/2017