Your first Excel report in 5 minutes - a TBEG quick start (Kotlin/Java)
In Part 1 , we explored what TBEG is. In this post, we'll write actual code and experience TBEG's core features hands-on. Step 1. Add Dependency // build.gradle.kts dependencies { implementation ( "io.github.jogakdal:tbeg:1.2.5" ) } Groovy / Maven: // build.gradle dependencies { implementation 'io.github.jogakdal:tbeg:1.2.5' } <!-- pom.xml --> <dependency> <groupId> io.github.jogakdal </groupId>…
Step 4. Advanced Template Features - Formatting In complex templates, you can control cell formatting directly within the Excel file. For example, to make the salary column show currency format, simply set the cell style to Currency in the Excel sheet. Then TBEG will preserve that formatting when generating the output. Step 5. Advanced Data Types - Working with Collections TBEG supports many collection types out of the box, such as lists, maps, sets, and arrays.
When using a collection in a repeat range, you can specify a starting cell range and TBEG will automatically fill in each row with the next element from the collection. Step 6. Integrating TBEG into Build Processes Incorporating TBEG into your development pipeline is straightforward. You can run TBEG as part of a Gradle or Maven build task, generating the Excel files automatically whenever your code changes. This ensures your reports stay in sync with your application logic.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.