Test in production without watermarks.
Works wherever you need it to.
Get 30 days of fully functional product.
Have it up and running in minutes.
Full access to our support engineering team during your product trial
The C# Excel Library
using IronXL;
using System;
using System.Linq;
// Supported for XLSX, XLS, XLSM, XLTX, CSV and TSV
WorkBook workBook = WorkBook.Load("sample.xlsx");
// Select worksheet at index 0
WorkSheet workSheet = workBook.WorkSheets[0];
// Get any existing worksheet
WorkSheet firstSheet = workBook.DefaultWorkSheet;
// Select a cell and return the converted value
int cellValue = workSheet["A2"].IntValue;
// Read from ranges of cells elegantly.
foreach (var cell in workSheet["A2:A10"])
{
Console.WriteLine("Cell {0} has value '{1}'", cell.AddressString, cell.Text);
}
// Calculate aggregate values such as Min, Max and Sum
decimal sum = workSheet["A2:A10"].Sum();
// Linq compatible
decimal max = workSheet["A2:A10"].Max(c => c.DecimalValue);
In this tutorial, viewers learn how to export Excel spreadsheet data into various formats using C# and IronXL. The process begins with setting up a console application in Visual Studio 2022, followed by installing IronXL via the NuGet Package Manager. After importing the IronXL library in code, the Excel file is loaded using the Workbook Load function. The tutorial guides users through exporting the Excel file to different formats, including CSV, JSON, and XML, using the Save As methods. For each file type, the path for the saved file is specified, and the generated files are reviewed to ensure data integrity and formatting consistency. The tutorial highlights IronXL’s effectiveness in maintaining original data formatting across exported files, making it a reliable tool for developers needing versatile data conversion capabilities. The tutorial concludes by offering support for further assistance, emphasizing IronXL's utility and user-friendliness in Excel data manipulation.
PM > Install-Package IronXL.Excel
30-day Trial Key instantly.
15-day Trial Key instantly.
Your trial key should be in the email.
If it is not, please contact
support@ironsoftware.com
Install-Package IronXL.Excel
Have a question? Get in touch with our development team.
No credit card required
Your trial key should be in the email.
successfully.
If it is not, please contact
support@ironsoftware.com
No credit card required
Get started for FREE
No credit card required
Test in production without watermarks.
Works wherever you need it to.
Get 30 days of fully functional product.
Have it up and running in minutes.
Full access to our support engineering team during your product trial
No credit card or account creation required
Your trial key should be in the email.
If it is not, please contact
support@ironsoftware.com
Get started for FREE
No credit card required
Test in production without watermarks.
Works wherever you need it to.
Get 30 days of fully functional product.
Have it up and running in minutes.
Full access to our support engineering team during your product trial
Licenses from $749. Have a question? Get in touch.
Book a 30-minute, personal demo.
No contract, no card details, no commitments.
10 .NET API products for your office documents