Introduction

This sample was contributed by Senthur Selvi Karunakaran and shows how to generate dynamic columns in Excel report.

Dynamic Columns Sample

Below is an Excel template for this sample

Screenshot of Dynamic Columns Sample XLS Template

Template XLS file

Check the following files to see the source code
Columns.java
FundsVO.java
ValueBean.java
DynamicXLSGeneration.java

Here is the output

Screenshot of Dynamic Columns Sample XLS Output

Result XLS file