コード例 #1
0
 private void processPrintSetup(final HSSFSheet sheet, final PrintSetup printSetup) {
   sheet.getPrintSetup().setPaperSize(printSetup.getPaperSize());
   sheet.getPrintSetup().setScale(printSetup.getScale());
   sheet.getPrintSetup().setFitWidth(printSetup.getFitWidth());
   sheet.getPrintSetup().setPageStart(printSetup.getPageStart());
   sheet.getPrintSetup().setFitHeight(printSetup.getFitHeight());
   sheet.getPrintSetup().setFooterMargin(printSetup.getFooterMargin());
   sheet.getPrintSetup().setLandscape(printSetup.getLandscape());
   sheet.getPrintSetup().setLeftToRight(printSetup.getLeftToRight());
   sheet.getPrintSetup().setNoColor(printSetup.getNoColor());
   sheet.getPrintSetup().setOptions(printSetup.getOptions());
   sheet.getPrintSetup().setDraft(printSetup.getDraft());
   sheet.getPrintSetup().setHResolution(printSetup.getHResolution());
   sheet.getPrintSetup().setNotes(printSetup.getNotes());
   sheet.getPrintSetup().setUsePage(printSetup.getUsePage());
   sheet.getPrintSetup().setVResolution(printSetup.getVResolution());
   sheet.getPrintSetup().setValidSettings(printSetup.getValidSettings());
   sheet.getPrintSetup().setNoOrientation(printSetup.getNoOrientation());
 }