https://github.com/williamsmithedward/exceleration
Exceleration is a C# library that wraps ExcelDataReader. It helps you better interact with Excel files by simplifying the development experience.
https://github.com/williamsmithedward/exceleration
async automation excel exceldatareader spreadsheet workbook worksheet
Last synced: about 2 months ago
JSON representation
Exceleration is a C# library that wraps ExcelDataReader. It helps you better interact with Excel files by simplifying the development experience.
- Host: GitHub
- URL: https://github.com/williamsmithedward/exceleration
- Owner: WilliamSmithEdward
- License: mit
- Created: 2023-09-30T04:15:55.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-27T18:43:04.000Z (11 months ago)
- Last Synced: 2025-03-17T09:55:20.833Z (about 2 months ago)
- Topics: async, automation, excel, exceldatareader, spreadsheet, workbook, worksheet
- Language: C#
- Homepage: https://www.nuget.org/packages/Exceleration
- Size: 54.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Exceleration
Exceleration is a C# library that wraps ExcelDataReader. It helps you better interact with Excel files by simplifying the development experience.## Example
### Basic Usage
```csharp
using Exceleration;var wb = new Workbook(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "test.xlsx"));
var ws = wb["Sheet1"];
var cell = ws["A1"];
Console.WriteLine(cell.Address + ": " + cell.Value);
cell = cell.Offset(1, 0);
Console.WriteLine(cell.Address + ": " + cell.Value);
cell = cell.Offset(0, 1);
Console.WriteLine(cell.Address + ": " + cell.Value);
```### Get All Cells
```csharp
using Exceleration;var wb = new Workbook(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "test.xlsx"));
var ws = wb["Sheet1"];
var cells = ws.Cells;
Console.WriteLine(cells.First().Address + ": " + cells.First().Value);
```### Using LINQ to Filter Cells
```csharp
using Exceleration;var wb = new Workbook(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "test.xlsx"));
var ws = wb["Sheet1"];
var cells = ws.Cells.Where(x => x.ColLetter.Equals("A"));
foreach (var item in cells)
{
Console.WriteLine(item.Address + ": " + item.Value + " " + item.ColLetter);
}
```### Accessing Rows and Columns Collections
```csharp
using Exceleration;var wb = new Workbook(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "test.xlsx"));
var ws = wb["Sheet1"];
var columns = ws.Columns("A");
var rows = ws.Rows(1);
Console.WriteLine(string.Join(",", columns.Select(x => x.Value)));
Console.WriteLine(string.Join(",", rows.Select(x => x.Value)));
```## Attributions
NuGet icon "SQLServerInteraction.png" designed by Stockes Design on Freepik.com