Skip to content
Advertisement

Multiple Excel file in sprint boot

enter image description hereIS there the way to create multiple excel file instead of multiple worksheets through spring boot? I have been using apache poi for generation of excel.

JavaScript

JavaScript

}

When i try to repeat the code of exp.export(response) , it gives me the 1 excel and for the next excel it says The workbook already contains a sheet named ‘Report’. I thought that if it created 2 excel then having the same worksheet name should not have been the issue . But seems like its trying to create another sheet instead of another excel . Correct me if I am wrong .

Thanks Team.

Advertisement

Answer

The way I did it was by changing the output stream: And passing fileName from the HomeController

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement