Exemplo n.º 1
0
 /**
  * 全てのシートの拡大率を指定する
  *
  * @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);
   }
 }
Exemplo n.º 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);
 }