I think your problem is with the exportDataToExcel method. First of all when i try this code it fails on opening the Excel document. But the main problem i think is in the line: xlsWorkBook = xlsWorkBookCollection.add(); I think you are adding an new WorkBook here, and then you have a blank workbook you are writing your data in.
↧