Set a sheet as selected using POI
Previous | Home | Next |
This page contain the example for the selection of excel sheet. for performing this action POI provide the special function call setSelected(); this method has the boolean value it may be true or false only. if you activate the true then sheet is selected otherwise default sheet will be selected.
setSelected(true) It is used to select the specified sheet from the workbook.
Workbook wb = new HSSFWorkbook(); Sheet sheet = wb.createSheet("row sheet"); sheet.setSelected(true);
Previous | Home | Next |