If you plan on doing this a lot, I'd recommend looking into something like JExcelApi (JExcelApi). If you are only going to do this a few times, it may be more efficient to just save the excel file to...