WorkbookScope

Scope for creating a workbook.

The [WorkbookScope] is the root of the DSL and manages the lifecycle of the driver.

Parameters

engine

the underlying ExcelDriver to use for generation

Constructors

Link copied to clipboard
constructor(driver: ExcelDriver)

Properties

Link copied to clipboard

Global default style applied to all sheets in this workbook.

Functions

Link copied to clipboard
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).

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.

Link copied to clipboard
inline fun <T> nativeWorkbook(crossinline block: (T) -> Unit)

Provides access to the underlying native workbook object.

Link copied to clipboard
fun sheet(name: String, defaultStyle: ExcelStyle? = null, init: SheetScope.() -> Unit)

Defines a new sheet in the workbook.