1 2 17 18 19 package org.apache.poi.hssf.usermodel.examples; 20 21 import org.apache.poi.hssf.usermodel.HSSFWorkbook; 22 import org.apache.poi.hssf.usermodel.HSSFSheet; 23 24 import java.io.IOException ; 25 import java.io.FileOutputStream ; 26 27 32 public class ZoomSheet 33 { 34 public static void main(String [] args) 35 throws IOException  36 { 37 HSSFWorkbook wb = new HSSFWorkbook(); 38 HSSFSheet sheet1 = wb.createSheet("new sheet"); 39 sheet1.setZoom(3,4); FileOutputStream fileOut = new FileOutputStream ("workbook.xls"); 41 wb.write(fileOut); 42 fileOut.close(); 43 } 44 } 45 | Popular Tags |