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

ZoomSheet

public class ZoomSheet extends Object
Sets the zoom magnication for a sheet.
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");
        sheet1.setZoom(3,4);   // 75 percent magnification
        FileOutputStream fileOut = new FileOutputStream("workbook.xls");
        wb.write(fileOut);
        fileOut.close();