IronXL.Excel 2019.3.2.1

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package IronXL.Excel --version 2019.3.2.1
NuGet\Install-Package IronXL.Excel -Version 2019.3.2.1
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="IronXL.Excel" Version="2019.3.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add IronXL.Excel --version 2019.3.2.1
#r "nuget: IronXL.Excel, 2019.3.2.1"
#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 IronXL.Excel as a Cake Addin
#addin nuget:?package=IronXL.Excel&version=2019.3.2.1

// Install IronXL.Excel as a Cake Tool
#tool nuget:?package=IronXL.Excel&version=2019.3.2.1
 static void ReadXlsxFile()
        {
          
            //You can read XLS files in the same way.
            //Other supported formats for reading are: CSV, TSV
            WorkBook workbook = WorkBook.Load("test.xlsx");
            workbook.Metadata.Author = "IronXL";
            //Other workbook operations...
            WorkSheet sheet = workbook.WorkSheets.First();

            var myvalue = sheet["A2"].DecimalValue;

        }

        static void ExportAndImportToExcel()
        {
            //This is how you import excel file, same for xlsx
            WorkBook workbook = WorkBook.Load("test.xls");
            workbook.CreateWorkSheet("new_sheet");
            workbook.Metadata.Title = "Import&Export Example";

            //You can export to both formats with fluent saving
            //Other supported formats for saving are: CSV, TSV, JSON, XML
            workbook.SaveAs("ExportAndImportToExcel.xls");
        }

        static void GetRangeInExcel()
        {
            WorkBook workbook = WorkBook.Load("test.xls");
            WorkSheet sheet = workbook.WorkSheets.First();

            //This is how we get range from Excel worksheet
            var range = sheet["A2:A8"];
            //This is how we can iterate over our range
            foreach (var cell in range)
            {
                Console.WriteLine(cell.Value);
            }

            var oneMoreRange = sheet["A9:A10"];
            //This is how we can combine our ranges
            var resultRange = range + oneMoreRange;

            //Iterate over new range
            foreach (var cell in resultRange)
            {
                Console.WriteLine(cell.Value);
            }
        }

        static void ExcelXlsxToDatatable()
        {
            WorkBook workbook = WorkBook.Load("test.xls");
            WorkSheet sheet = workbook.DefaultWorkSheet;

            //This is how you convert your worksheet to DataTable
            //Boolean parameter allows you to set whether you want to treat your first row as column names of your table.
            //The default value is false
            var dataTable = sheet.ToDataTable(true);

            foreach (DataRow row in dataTable.Rows)
            {
                for (int i = 0; i < dataTable.Columns.Count; i++)
                {
                    Console.Write(row[i]);
                }
            }
            Console.WriteLine();

            //Also you can convert the whole workbook to DataSet and work with it the way you like.
            var dataSet = workbook.ToDataSet();
            foreach (DataTable table in dataSet.Tables)
            {
                Console.WriteLine(table.TableName);
            }
        }

        static void CreateExcelWorksheet()
        {
            WorkBook workBook = WorkBook.Load("test.xlsx");
            //This is how we create new worksheet
            var newSheet = workBook.CreateWorkSheet("new_sheet");
            //You can perform any operations you want with the new sheet.
            newSheet["B2"].Value = DateTime.Now;
        }

        static void GenerateExcelFile()
        {
            //This is how we create new workbook. Default file format is XLSX, we can override it using CreatingOptions
            WorkBook xlsWorkbook = WorkBook.Create( ExcelFileFormat.XLS );
            //This is how we create new worksheet
            WorkSheet xlsSheet = xlsWorkbook.CreateWorkSheet("new_sheet");
            //Add data and styles to the new worksheet
            xlsSheet["A1"].Value = "Hello World";
            xlsSheet["A2"].Style.BottomBorder.SetColor("#123456");
            xlsSheet["A2"].Style.BottomBorder.Type = IronXL.Styles.BorderType.Double;

            //Save generated excel file
            xlsWorkbook.SaveAs("GenerateExcelFile.xls");
        }
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net45 is compatible.  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 was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on IronXL.Excel:

Package Downloads
Usabit.Framework.Data

Framework to manage database connections and develop repositories pattern.

MepApps.Svr.Internal

Mep Apps Inc. Cloud Internals

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2024.4.4 4,276 4/4/2024
2024.3.20 6,291 3/11/2024
2024.2.25 11,677 1/29/2024
2024.1.21 10,623 12/29/2023
2023.12.19 9,475 12/1/2023
2023.11.12 11,121 10/27/2023
2023.10.8 7,797 10/6/2023
2023.9.29 10,593 8/31/2023
2023.8.19 16,647 7/31/2023
2023.7.4 21,891 7/6/2023
2023.6.4 24,243 5/29/2023
2023.5.4 24,197 5/1/2023
2023.4.13 36,042 3/29/2023
2023.2.5 25,749 2/27/2023
2023.1.14 15,957 1/31/2023
2022.12.11262 20,593 12/29/2022
2022.12.10926 19,857 12/8/2022
2022.11.10251 53,640 11/2/2022
2022.9.9454 27,246 9/29/2022
2022.8.8357 7,923 8/23/2022
2022.7.7362 36,923 7/13/2022
2022.6.6825 16,368 6/23/2022
2022.3.0 88,645 3/10/2022
2021.12.0 34,787 12/21/2021
2021.11.0 12,767 10/29/2021
2021.9.0 29,527 8/24/2021
2020.12.2 93,503 12/8/2020
2020.9.1 16,876 9/21/2020
2020.9.0 5,832 9/3/2020
2020.6.0 21,149 6/2/2020
2020.5.0 4,387 5/1/2020
2019.5.2 29,212 9/10/2019
2019.5.0 3,918 7/22/2019
2019.3.2.1 4,699 5/21/2019

New Release of IronXL Excel library for .Net

Supports Framework 4.5+ and Core 2.0+

- Logical API designed for developer usability.
- Create, Open, Edit, Recalculate, Export and Save Implemented for XLSX and XLS
- Cell Styling
- Live Formula Recalculation