Skip to content

develoberke/Jaxcel

Repository files navigation

Jaxcel

MIT License Apache poi

Jaxcel, built on Apache POI, simplifies and optimizes the process of exporting data to Excel spreadsheets in Java applications. It provides a class-based approach to defining export configurations, making it straightforward to generate Excel files from your Java objects.

Features

  • Class-Based Configuration
  • Apache POI Integration
  • Easy to Use
  • Flexible

Usage/Examples

Kotlin

Jaxcel.generateExcelFile(data = List<yourData>, fileName = "fileName", clazz = YourClass::class.java)

// or to create workbook
Jaxcel.generateExcelWorkbook(data, YourClass.class)

Java

Jaxcel.generateExcelFile(List<yourData>, "fileName", YourClass.class);

// or to create workbook
Jaxcel.generateExcelWorkbook(List<yourData>, YourClass.class)

Quick Overview

// ExcelModel annotation allows you to give a name for your excel sheet
// if not provided, it takes class name by default
@ExcelModel(name = "User Information")
data class User(
    // ExcelColumn annotation allows you to give a name and width for your excel sheet
    // if not provided, it takes field name by default
    @field:ExcelColumn(name = "user id", width = 50) var id: Int,
    val name: String,
    val email: String,
)

About

Jaxcel is a class-based excel export library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages