IronXL.Excel
2019.3.2.1
Prefix Reserved
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
.NET Framework 4.5
This package targets .NET Framework 4.5. The package is compatible with this framework or higher.
There is a newer version of this package available.
See the version list below for details.
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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 (3)
Showing the top 3 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 |
|
DYMO.LabelAPI.Mac
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2024.11.16 | 212 | 11/11/2024 |
2024.10.2 | 8,360 | 10/3/2024 |
2024.9.3 | 6,543 | 9/9/2024 |
2024.8.5 | 19,827 | 7/30/2024 |
2024.7.1 | 9,170 | 7/5/2024 |
2024.6.1 | 11,985 | 6/4/2024 |
2024.5.5 | 17,265 | 5/2/2024 |
2024.4.4 | 19,623 | 4/4/2024 |
2024.3.20 | 12,258 | 3/11/2024 |
2024.2.25 | 24,248 | 1/29/2024 |
2024.1.21 | 18,525 | 12/29/2023 |
2023.12.19 | 12,382 | 12/1/2023 |
2023.11.12 | 16,090 | 10/27/2023 |
2023.10.8 | 11,790 | 10/6/2023 |
2023.9.29 | 14,332 | 8/31/2023 |
2023.8.19 | 21,585 | 7/31/2023 |
2023.7.4 | 29,446 | 7/6/2023 |
2023.6.4 | 31,554 | 5/29/2023 |
2023.5.4 | 31,321 | 5/1/2023 |
2023.4.13 | 48,846 | 3/29/2023 |
2023.2.5 | 28,887 | 2/27/2023 |
2023.1.14 | 20,028 | 1/31/2023 |
2022.12.11262 | 30,498 | 12/29/2022 |
2022.12.10926 | 20,410 | 12/8/2022 |
2022.11.10251 | 66,613 | 11/2/2022 |
2022.9.9454 | 31,665 | 9/29/2022 |
2022.8.8357 | 8,716 | 8/23/2022 |
2022.7.7362 | 41,671 | 7/13/2022 |
2022.6.6825 | 17,150 | 6/23/2022 |
2022.3.0 | 96,602 | 3/10/2022 |
2021.12.0 | 39,466 | 12/21/2021 |
2021.11.0 | 13,706 | 10/29/2021 |
2021.9.0 | 32,558 | 8/24/2021 |
2020.12.2 | 100,287 | 12/8/2020 |
2020.9.1 | 18,636 | 9/21/2020 |
2020.9.0 | 5,918 | 9/3/2020 |
2020.6.0 | 23,470 | 6/2/2020 |
2020.5.0 | 4,984 | 5/1/2020 |
2019.5.2 | 30,961 | 9/10/2019 |
2019.5.0 | 4,148 | 7/22/2019 |
2019.3.2.1 | 6,612 | 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