Info
Version: | 0.2.0 |
Author(s): | Cblx.Infra.OpenXml |
Last Update: | Monday, September 4, 2017 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/Cblx.Infra.OpenXml |
Install
Install-Package Cblx.Infra.OpenXml
dotnet add package Cblx.Infra.OpenXml
paket add Cblx.Infra.OpenXml
Cblx.Infra.OpenXml Download (Unzip the "nupkg" after downloading)
Dependencies
.NETFramework 4.5
- WindowsBase(>= 4.6.1055)
- DocumentFormat.OpenXml(>= 2.7.2)
- NETStandard.Library(>= 1.6.1)
- DocumentFormat.OpenXml(>= 2.7.2)
usage:
var excel = new Document();
//Get the first sheet
var sheet1 = excel.GetSheets().First()
//Change sheet name
sheet1.Name = "My first sheet";
//Write some data
sheet1.WriteToCell(1, 1, "Test 1");
//Create another sheet
var sheet2 = excel.AddSheet(new Sheet("My second sheet"));
//Write some data
sheet2.WriteToCell(1, 1, "Test 2");
//Save to file, or stream..
excel.Save("myFile.xlsx");.