Creates a sheet at the First position and gives Name of the Sheet.
Previous | Home | Next |
In this we are going to explain the way to give name of sheets and define the index positions for sheets.
We can pass name and indexed positions at creation of objects of writable sheet as WritableSheet sheet = workbook.createSheet("First Sheet", 0);
createSheet():- public abstract WritableSheet createSheet(java.lang.String sheetName,int index) This methods creates a worksheet at specified position with specified name.If index <=0 then new sheet is created at first position of the workbook. If the index is > the number of sheet, then the sheet is created at the end of the workbook. We can set the name of sheet using setName(java.lang.String sheetName) methods of WritableSheet interface also.
Previous | Home | Next |