FileDocCategorySizeDatePackage
NewSheet.javaAPI DocApache Poi 3.0.11684Mon Jan 01 12:39:42 GMT 2007org.apache.poi.hssf.usermodel.examples

NewSheet

public class NewSheet extends Object
Creates a new workbook with a sheet that's been explicitly defined.
author
Glen Stampoultzis (glens at apache.org)

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

        HSSFWorkbook wb = new HSSFWorkbook();
        HSSFSheet sheet1 = wb.createSheet("new sheet");
        HSSFSheet sheet2 = wb.createSheet("second sheet");
        FileOutputStream fileOut = new FileOutputStream("workbook.xls");
        wb.write(fileOut);
        fileOut.close();