Getting Started

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

Check out new release. This Version is no longer maintained.

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.Excel
# For Pre Release
dotnet add package OpenXMLOffice.Excel--prerelease

Package Version Details

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

Package
Maintanance
Current Stable Version
Current Alpha Version

OpenXMLOffice.Presentation

Not Active

OpenXMLOffice.Excel

Not Active

OpenXMLOffice.Document

Not 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;

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

public static main(){
    Spreadsheet spreadsheet = new(string.Format("../../test-{0}.xlsx", DateTime.Now.ToString("yyyy-MM-dd-HH-mm-ss")));
    spreadsheet.AddSheet("Sheet1");
    spreadsheet.save();
}

Last updated

Was this helpful?