asereware.spreadsheetlight 3.5.0.17

dotnet add package asereware.spreadsheetlight --version 3.5.0.17
                    
NuGet\Install-Package asereware.spreadsheetlight -Version 3.5.0.17
                    
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="asereware.spreadsheetlight" Version="3.5.0.17" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="asereware.spreadsheetlight" Version="3.5.0.17" />
                    
Directory.Packages.props
<PackageReference Include="asereware.spreadsheetlight" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add asereware.spreadsheetlight --version 3.5.0.17
                    
#r "nuget: asereware.spreadsheetlight, 3.5.0.17"
                    
#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.
#:package asereware.spreadsheetlight@3.5.0.17
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=asereware.spreadsheetlight&version=3.5.0.17
                    
Install as a Cake Addin
#tool nuget:?package=asereware.spreadsheetlight&version=3.5.0.17
                    
Install as a Cake Tool

Asereware.SpreadsheetLight A new version of SpreadsheetLight from original Copyright (c) 2011 Vincent Tan Wai Lip version, but with support for DocumentFormat.OpenXml.

https://spreadsheetlight.com

Dependencies: DocumentFormat.OpenXml v2.10.1 to support save Excel macro files. Before we have v2.19.0.0 of OpenXml, but does not support save macro files. Net Framework v4.8.1 Please got to https://spreadsheetlight.com/developers/ for more information.

Constraints Office SmartTag support has been removed (but still commented in source code). To install from Nuget go to: https://www.nuget.org/packages/asereware.spreadsheetlight/

Use it Create xlsx file and get data table and data view.

[TestClass()] public class SLDocumentTests { private const string _coFileName = "Hello World.xlsx";

[TestMethod()]
public void SetCellValueTest()
{
    using (var sd = new SLDocument())
    {
        sd.SetCellValue("A1", "My text value");
        sd.SetCellValue("B1", true);
        sd.SetCellValue(1, 3, DateTime.Now.ToString("g"));
        sd.SaveAs(_coFileName);
    }

    Assert.IsTrue(File.Exists(_coFileName));
    CreateDataTableExtension();
    CreateDataViewExtension();
}

private void CreateDataTableExtension()
{
    System.Data.DataTable dt = null;
    using (var sd = new SLDocument(_coFileName))
    {
        dt = sd.CreateDataTable(hasHeaders: false);                
    }

    Assert.IsTrue(dt.Columns.Count == 3);
    Assert.IsTrue(dt.Rows.Count == 1);
}

private void CreateDataViewExtension()
{
    System.Data.DataView dv = null;
    using (var sd = new SLDocument(_coFileName))
    {
        dv = sd.CreateDataView(hasHeaders: false);
    }

    Assert.IsTrue(dv.Count == 1);
    Assert.IsTrue(dv.Table.Columns.Count == 3);
    Assert.IsTrue(dv.Table.Rows.Count == 1);

    var col1Name = dv.Table.Columns[0].ColumnName;
    dv.RowFilter = $"{col1Name} LIKE '%text%'";
    Assert.IsTrue(dv.Count == 1);
    dv.RowFilter = $"{col1Name} LIKE '%none%'";
    Assert.IsTrue(dv.Count == 0);
    dv.RowFilter = String.Empty;
    Assert.IsTrue(dv.Count == 1);
}

}

Product Compatible and additional computed target framework versions.
.NET Framework net481 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.5.0.17 67 7/12/2025
3.5.0.16 190 12/2/2024
3.5.0.15 317 12/12/2023
3.5.0.14 140 12/12/2023
3.5.0.12 153 12/8/2023
3.5.0.10 126 12/7/2023
3.5.0.9 128 12/6/2023
3.5.0.8 450 2/9/2023
3.5.0.7 575 6/30/2022
3.5.0.6 712 9/2/2020
3.5.0.5 512 9/1/2020
3.5.0.4 523 8/31/2020
3.5.0.3 544 8/31/2020
3.5.0.2 501 8/31/2020
3.5.0.1 516 8/31/2020
3.5.0 514 8/31/2020

Full nuget updated at 2025-07-11.