I am looking for some examples of Groovy doing basic formatting commands for an Excel document. I would also like to know where I can find a repository of these commands too.
How would you:
Insert a row
Format a cell to Short Date, Time, etc.
Bold an entire column or row
How's this (with POI 3.9).
Assuming you have an input XLS file in
/tmp/test.xls
, this should make the modifications you asked for, and then write the workbook out t a new file/tmp/test2.xls
. I've added comments, so hopefully it should make sense :-)