Feature Image ON SALE

Workbooks for .NET

Create or manipulate Microsoft Excel documents from your .NET applications, without the need for Excel or Office to be installed. This is a fast and lightweight component, backed by a responsive support and development team whose sole ambition is your complete satisfaction.

Gallery Image
1
Subscription
Looking to renew
I'm eligible for small business pricing. Learn More
2
Quantity
3
Total
Loading...
1-Year Priority
Support
Unlimited Installs
On Any Device
Satisfaction
Guarantee
Try For Free For 45 Days!
Download

Xceed Workbooks for .NET is an Excel library for .NET that creates, reads and edits Microsoft Excel .xlsx files from C# and VB.NET code. It writes the Office Open XML format directly. Therefore it never needs Excel, Office or COM Interop on the machine that runs it. As a result, it works on web servers, inside Docker containers and in CI pipelines where installing Excel is not an option.

  • No Excel or Office install required, and no COM Interop anywhere in the stack.
  • Runs on .NET Framework 4.0 and up, plus .NET 5, 6, 7, 8 and 9.
  • Cross-platform on .NET 5 and later: Windows, Linux and macOS, with Linux native assets included.
  • 100% managed C#, CLS compliant, with no unsafe code blocks.
  • Shares its API design with Xceed Words for .NET, so both libraries feel familiar.

Want to see it run first? The live Xceed Workbooks for .NET demo opens in your browser, and the 45-day trial below needs no credit card.

Create an Excel file in C# in about twenty lines

The API mirrors the shape of an Excel workbook, so the code reads much like the document it produces. First you create a workbook, then you write values into cells, and finally you save. This example builds a small sales sheet, adds a real Excel table and calculates a formula.

using Xceed.Workbooks.NET;

// Apply your trial or purchased key once, at application startup.
Licenser.LicenseKey = "your-license-key";

using( var workbook = Workbook.Create( "SalesReport.xlsx" ) )
{
  var sheet = workbook.Worksheets[ 0 ];
  sheet.Name = "Q1 Sales";

  sheet.Cells[ "A1" ].Value = "Region";
  sheet.Cells[ "B1" ].Value = "Revenue";

  sheet.Cells[ "A2" ].Value = "North America";
  sheet.Cells[ "B2" ].Value = 128400d;
  sheet.Cells[ "A3" ].Value = "Europe";
  sheet.Cells[ "B3" ].Value = 96750d;

  sheet.Cells[ "A5" ].Value = "Total";
  sheet.Cells[ "B5" ].Formula = "=SUM(B2:B3)";

  // Turn the range into a genuine Excel table, not just formatted cells.
  sheet.Tables.Add( "SalesTable", "A1", "B3", TableStyle.TableStyleMedium9, true );

  workbook.CalculateFormulas();
  workbook.Save();
}

Reading an existing file follows the same pattern. You call Workbook.Load instead of Workbook.Create, change what you need, then call SaveAs to write a new copy. Because Workbook implements IDisposable, the using block closes the file for you.

Complete control over cells, tables and formulas

Xceed Workbooks for .NET gives your application direct control over the contents of an .xlsx document. You can edit cell values, resize rows and columns, build formatted tables, and set formulas that the library then calculates. In addition, you can import collections straight into a worksheet with ImportData, add pictures and hyperlinks, and merge cell ranges.

Formatting works the same way. You can style cells, rows and columns with fonts, colours, alignments and number formats. Furthermore you can apply conditional formatting, add data validation rules, adjust the sheet view, and set the page layout for printing. Finally, you can protect a workbook or a single worksheet with a password.

Worksheet management is equally direct. You can add, insert, copy, move, hide or remove worksheets, and you can copy sheets between two different workbooks.

Use Excel itself as your reporting template engine

An Excel library for .NET can replace a reporting engine outright. Most reporting tools ask your team to learn a custom designer. Xceed Workbooks for .NET takes the opposite approach. Instead, you design the report in Excel, where your finance and operations colleagues already work, and then treat that file as a template.

At run time your code loads the template, fills in the data, recalculates the formulas and saves a copy per customer. Because the output is a normal .xlsx file, recipients open it in Excel, Google Sheets or LibreOffice without a viewer or a plugin. Teams commonly use this pattern for invoices, KPI dashboards, quarterly sales reports and data exports.

Supported .NET versions and platforms

Before you pick an Excel library for .NET, check that it covers the frameworks you actually ship on. This one ships two builds in a single NuGet package, so the right assembly resolves automatically for your target framework.

TargetSupportedNotes
.NET Framework 4.0 and upYesWindows. Uses the net40 build.
.NET 5, 6, 7, 8 and 9YesWindows, Linux and macOS. Uses the net5.0 build.
ASP.NET and ASP.NET CoreYesServer-side generation needs no Office install.
Docker and Linux containersYesLinux native drawing assets ship in the package.
C#, VB.NET and Managed C++YesCLS compliant, so every .NET language works.
Microsoft Excel installedNot requiredThe library writes Open XML directly.

How it compares with Excel Interop and free libraries

Developers usually arrive here after hitting a wall with one of two alternatives. The table below sets out the practical differences.

ApproachNeeds Excel installedSafe on a serverCommercial support
Xceed Workbooks for .NETNoYesYes, with a 1-year priority support subscription
Microsoft Excel COM InteropYesNo. Microsoft advises against server-side useThrough an Office licence only
Open-source .xlsx librariesNoYesCommunity forums, with no service level

Interop also routes every call through a desktop application, so throughput drops sharply under load. A managed Excel library for .NET avoids that bottleneck entirely, which keeps generation predictable on a busy server.

Frequently asked questions

Do I need Microsoft Excel installed to use Xceed Workbooks for .NET?

No. Xceed Workbooks for .NET writes the Office Open XML .xlsx format directly, so it needs no Excel installation, no Office licence and no COM Interop on the machine that runs your code. Consequently you can generate spreadsheets on a web server or inside a container.

Which .NET versions does Xceed Workbooks for .NET support?

The package targets .NET Framework 4.0 and up as well as .NET 5.0 and up, which covers .NET 5, 6, 7, 8 and 9. It also works with ASP.NET and ASP.NET Core, and it supports C#, VB.NET and Managed C++.

Does Xceed Workbooks for .NET run on Linux and in Docker?

Yes, on .NET 5 and later. The package depends on Xceed.Drawing.NET, which ships SkiaSharp Linux native assets, so drawing and image support work inside Linux containers without extra system packages.

Can it read and edit an existing Excel file, or only create new ones?

It does both. Call Workbook.Load to open an existing .xlsx file, modify cells, tables, formulas or formatting, then call Save or SaveAs. Many teams use this to populate a spreadsheet that a colleague designed in Excel.

Does Xceed Workbooks for .NET calculate Excel formulas?

Yes. You assign a formula through the Formula property on a cell, then call CalculateFormulas on the workbook or the worksheet. The library evaluates the supported formulas and stores the results in the saved file.

How much does Xceed Workbooks for .NET cost, and is there a free trial?

A free 45-day trial is available and needs no credit card. Paid subscriptions begin with the Small Business licence for companies under 1 million USD in annual revenue, followed by the Standard licence and the Blueprint licence, which adds full source code.

Created by the Xceed Words for .NET team

The team behind Xceed Words for .NET builds this library too, so it inherits years of work on Open XML documents. Xceed shipped the first release in 2021 and has followed a regular release cadence since then. You can review every build, together with its release notes, in the Product Updates section below.

Requests from subscribers drive much of the roadmap. If something you need is missing, the support forums are the fastest route to getting it considered.

Note that there is no refund for this product.

  • Object-oriented design created specifically for .NET.
  • Targets .NET Framework 4.0 and up, and .NET 5.0 and up, which covers .NET 5, 6, 7, 8 and 9.
  • Cross-platform on .NET 5 and later: Windows, Linux and macOS, including Docker containers.
  • Works with ASP.NET and ASP.NET Core for server-side spreadsheet generation.
  • Supports C#, VB.NET and Managed C++.
  • 100% managed code, written in C#.
  • Source code included with the Blueprint subscription.
  • Error handling exclusively through .NET exception classes.
  • Workbook implements IDisposable, so a using block releases the file handle.
  • CLS compliant, with no unsafe blocks, for minimal permission requirements.
  • Documentation integrated into Visual Studio through XML comments.
  • Includes a commented sample application that demonstrates every function.
Try For Free For 45 Days!
Download

Check out Xceed’s Words and PDF Library bundle