ExcelDocumentsModule 1.0.2
dotnet add package ExcelDocumentsModule --version 1.0.2
NuGet\Install-Package ExcelDocumentsModule -Version 1.0.2
<PackageReference Include="ExcelDocumentsModule" Version="1.0.2" />
paket add ExcelDocumentsModule --version 1.0.2
#r "nuget: ExcelDocumentsModule, 1.0.2"
// Install ExcelDocumentsModule as a Cake Addin
#addin nuget:?package=ExcelDocumentsModule&version=1.0.2
// Install ExcelDocumentsModule as a Cake Tool
#tool nuget:?package=ExcelDocumentsModule&version=1.0.2
Supports .NET Core 3.xx This module allows easy to write/read excel files to DataSet using OpenXml under the hood and supports MS Orleans ver. 3.2 and higher.
Please feel free to fork and submit pull requests to the develop branch.
Supported file formats and versions
Extension Excel Version(s) .xlsx 2007 and newer .xls 2003, and newer .csv Only with the comma separator
How to use read method without MS Orleans:
/// "ReadDocument" method has bool parameter "isFirstRowHeader" which works only with .xls and .xlsx files.
/// CSV files always use the comma separator to define the first row as a header inside the DataSet.
var excelModule = new ExcelModule();
var filePath = "../Some/Directory/FileName.xlsx";
var dataSet = excelModule.ReadDocument(filePath);
How to use write method without MS Orleans:
var excelModule = new ExcelModule();
var outputFilePath = "../Some/Directory/FileName.xlsx";
var dataSetToFile = new DataSet();
//...
// Adding some data to dataSetToFile...
//...
excelModule.WriteDocument(dataSetToFile, outputFilePath);
How to use ExcelDocumentsModule with MS Orleans: Just replace new ExcelModule(); or container.Resolve<IExcelModule>(); to client.GetGrain<IExcelModuleOrleans>(Guid.NewGuid()); where the client is IClusterClient.
For more information look at the tests projects.
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 | netcoreapp3.1 is compatible. |
-
- DocumentFormat.OpenXml (>= 2.11.3)
- Microsoft.Orleans.CodeGenerator.MSBuild (>= 3.2.2)
- Microsoft.Orleans.Core.Abstractions (>= 3.2.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.