Menu

Jxls.Net: A C#/.NET Port of Java JXLS 3.x for Excel Template-Based Reporting
πŸ“°

Jxls.Net: A C#/.NET Port of Java JXLS 3.x for Excel Template-Based Reporting

DEV Community: csharpΒ·tadatrolaiΒ·about 9 hours ago
#Jnn7T3LV
#devtocsharp#devto#dev#jxls#xlsx
Long article (270 words) β€” no AI summary yet.
Reading 0:00
15s threshold

If you've ever used JXLS in Java to generate complex Excel reports from .xlsx templates ( jx:area , jx:each , dynamic SUM formula expansion) and wished for the exact same workflow in C#/.NET , I built Jxls.Net β€” a clean C#/.NET port of jxlsteam/jxls 3.x powered by NPOI .

GitHub: https://github.com/tadatrolai/jxls-net

NuGet: https://www.nuget.org/packages/Jxls.Npoi

License: Apache-2.0

Targets: netstandard2.0 and net8.0

Install

dotnet add package Jxls.Npoi

Enter fullscreen mode

Exit fullscreen mode

Quick Example

Define your layout and styling in template.xlsx using standard JXLS cell comments:

A1 comment: jx:area(lastCell="C4")

A3 comment: jx:each(items="employees" var="e" lastCell="C3")

Row 3: ${e.Name} , ${e.Department} , ${e.Salary}

Row 4: =SUM(C3) (automatically expands to =SUM(C3:C<N>) )

Then fill it in C#:

using Jxls . Npoi .…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.