data Sheet
fun <T> dataSheet(name: String, data: Sequence<T>, defaultStyle: ExcelStyle? = null, init: DataSheetScope<T>.() -> Unit)
Defines a data sheet in the workbook using DTO binding.
Automatically generates a header row followed by data rows based on the provided [data].
Parameters
name
the name of the sheet
data
the sequence of items to bind to rows
default Style
optional default style for this sheet
init
DSL block to configure columns and row styles
See also
fun <T> dataSheet(name: String, data: Iterable<T>, defaultStyle: ExcelStyle? = null, init: DataSheetScope<T>.() -> Unit)
Defines a data sheet using an Iterable (e.g., List, Set).