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 .β¦