Getting Started

The page furnishes comprehensive installation instructions, guiding you through the process of incorporating the package dependency.

Repository URL https://github.com/DraviaVemal/OpenXML-Office

Version v4.x is rewrite on current package in rust along with cross language support. Very much in active development in all areas including this documentation.

Version v2.x will be the stable build code.

Bugfix in v2.x will br priority till v4.x is released

Feel free to start discussion for any new feature requirement. Discussion Channel

The library is available on NuGet. You can install it using the following command

#Using Package Manager
Install-Package OpenXMLOffice
#Using .NET CLI
dotnet add package OpenXMLOffice.Presentation
# For Pre Release
dotnet add package OpenXMLOffice.Presentation --prerelease
#Using .NET CLI
dotnet add package OpenXMLOffice.Spreadsheet
# For Pre Release
dotnet add package OpenXMLOffice.Spreadsheet --prerelease

Package Quality

Package Version Details

The official release NuGet packages for OpenXMLOffice on NuGet.org:

PackageMaintenanceCurrent Stable ReleaseCurrent Alpha Release

OpenXMLOffice.Presentation

Active

OpenXMLOffice.Spreadsheet

Active

OpenXMLOffice.Document

Active

Once Installed the package should be direct use availabel like below example. More samples can be seen in test project's of the repo or check other parts of the documents

using OpenXMLOffice.Presentation_2007;

public static main(){
    PowerPoint powerPoint = new();
    powerPoint.AddSlide(PresentationConstants.SlideLayoutType.BLANK);
    powerPoint.SaveAs(string.Format("../../test-{0}.pptx", DateTime.Now.ToString("yyyy-MM-dd-HH-mm-ss")));
}
using OpenXMLOffice.Spreadsheet_2007;

public static main(){
    Excel excel = new();
    excel.AddSheet("Sheet1");
    excel.SaveAs(string.Format("../../test-{0}.xlsx", DateTime.Now.ToString("yyyy-MM-dd-HH-mm-ss")));
}
using OpenXMLOffice.Document_2007;

public static main(){
    Word word = new();
    word.SaveAs(string.Format("../../test-{0}.docx", DateTime.Now.ToString("yyyy-MM-dd-HH-mm-ss")));
}

Last updated