예제 #1
0
파일: OoxmlUtil.java 프로젝트: zhangrui1/SK
 /**
  * 全てのシートの拡大率を指定する
  *
  * @param workbook ワークブック
  * @param numerator 拡大率は numerator/denominatorで算出される
  * @param denominator 拡大率は numerator/denominatorで算出される
  */
 public static void setZoom(XSSFWorkbook workbook, int numerator, int denominator) {
   assert workbook != null;
   for (int nIndex = 0; nIndex < workbook.getNumberOfSheets(); nIndex++) {
     XSSFSheet sheet = workbook.getSheetAt(nIndex);
     sheet.setZoom(numerator, denominator);
   }
 }
예제 #2
0
 /**
  * Sets the zoom magnication for the sheet. The zoom is expressed as a fraction. For example to
  * express a zoom of 75% use 3 for the numerator and 4 for the denominator.
  *
  * @param numerator The numerator for the zoom magnification.
  * @param denominator The denominator for the zoom magnification.
  */
 public void setZoom(int numerator, int denominator) {
   _sh.setZoom(numerator, denominator);
 }