Examples of PrintSetup


Examples of org.apache.poi.ss.usermodel.PrintSetup

    final boolean usePage = "true".equals
        (config.getConfigProperty("org.pentaho.reporting.engine.classic.core.modules.output.table.xls.PrintUsePage"));
    final boolean draft = "true".equals
        (config.getConfigProperty("org.pentaho.reporting.engine.classic.core.modules.output.table.xls.PrintDraft"));

    final PrintSetup printSetup = sheet.getPrintSetup();
    ExcelPrintSetupFactory.performPageSetup(printSetup, page, paper, orientation);
    printSetup.setScale(scale);
    printSetup.setNoColor(noColors);
    printSetup.setNotes(notes);
    printSetup.setUsePage(usePage);
    if (hres > 0)
    {
      printSetup.setHResolution(hres);
    }
    if (vres > 0)
    {
      printSetup.setVResolution(vres);
    }
    printSetup.setDraft(draft);

    final boolean displayGridLines = "true".equals(config.getConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.output.table.xls.GridLinesDisplayed"));
    final boolean printGridLines = "true".equals(config.getConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.output.table.xls.GridLinesPrinted"));
View Full Code Here

Examples of org.apache.poi.ss.usermodel.PrintSetup

    final boolean usePage = "true".equals
        (config.getConfigProperty("org.pentaho.reporting.engine.classic.core.modules.output.table.xls.PrintUsePage"));
    final boolean draft = "true".equals
        (config.getConfigProperty("org.pentaho.reporting.engine.classic.core.modules.output.table.xls.PrintDraft"));

    final PrintSetup printSetup = sheet.getPrintSetup();
    ExcelPrintSetupFactory.performPageSetup(printSetup, page, paper, orientation);
    printSetup.setScale(scale);
    printSetup.setNoColor(noColors);
    printSetup.setNotes(notes);
    printSetup.setUsePage(usePage);
    if (hres > 0)
    {
      printSetup.setHResolution(hres);
    }
    if (vres > 0)
    {
      printSetup.setVResolution(vres);
    }
    printSetup.setDraft(draft);

    final boolean displayGridLines = "true".equals(config.getConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.output.table.xls.GridLinesDisplayed"));
    final boolean printGridLines = "true".equals(config.getConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.output.table.xls.GridLinesPrinted"));
View Full Code Here

Examples of org.apache.poi.ss.usermodel.PrintSetup


    public static void main(String[]args) throws Exception {
        Workbook wb = new XSSFWorkbook()//or new HSSFWorkbook();
        Sheet sheet = wb.createSheet("format sheet");
        PrintSetup ps = sheet.getPrintSetup();

        sheet.setAutobreaks(true);

        ps.setFitHeight((short) 1);
        ps.setFitWidth((short) 1);

        // Create various cells and rows for spreadsheet.

        FileOutputStream fileOut = new FileOutputStream("fitSheetToOnePage.xlsx");
        wb.write(fileOut);
View Full Code Here

Examples of org.zkoss.poi.ss.usermodel.PrintSetup

      return;
    }
    int numSheet = book.getNumberOfSheets();
    for (int i = 0; i < numSheet; i++) {
      Sheet sheet = ss.getSheet(i);
      PrintSetup setup = sheet.getPrintSetup();
      setup.setLandscape(isLandscape);
    }
  }
View Full Code Here

Examples of org.zkoss.poi.ss.usermodel.PrintSetup

      return;
    }
    int numSheet = book.getNumberOfSheets();
    for (int i = 0; i < numSheet; i++) {
      Sheet sheet = ss.getSheet(i);
      PrintSetup setup = sheet.getPrintSetup();
      setup.setLandscape(orgOrientation);
    }
  }
View Full Code Here

Examples of org.zkoss.poi.ss.usermodel.PrintSetup

      return;
    }
    int numSheet = book.getNumberOfSheets();
    for (int i = 0; i < numSheet; i++) {
      Sheet sheet = ss.getSheet(i);
      PrintSetup setup = sheet.getPrintSetup();
    }
  }
View Full Code Here

Examples of org.zkoss.poi.ss.usermodel.PrintSetup

      return;
    }
    int numSheet = book.getNumberOfSheets();
    for (int i = 0; i < numSheet; i++) {
      Sheet sheet = ss.getSheet(i);
      PrintSetup setup = sheet.getPrintSetup();
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.