Package org.apache.poi.hssf.usermodel

Examples of org.apache.poi.hssf.usermodel.HSSFWorkbook


      throws ProTransException {
    if (directory == null || directory.length() == 0) {
      throw new ProTransException("Katalog ikke satt");
    }

    HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet sheet = wb.createSheet("sheet");

    int currentRow = 0;
    int startCell = 0;

    HSSFRow row;
View Full Code Here


  }

  public void generateJiggReport(final ExcelReportSetting reportSetting,
      final Map<Object, Object> data) throws ProTransException {
    String excelPath = getExcelPath();
    HSSFWorkbook wb = new HSSFWorkbook();

    HSSFSheet sheet = getSheet(wb, 1, new int[] { 4000 });

    int currentRow = 0;
    HSSFRow row;
View Full Code Here

  public void generateOrdrereserveTakstolReport(
      final ExcelReportSetting reportSetting,
      final Map<Object, Object> data) throws ProTransException {
    String excelPath = getExcelPath();
    HSSFWorkbook wb = new HSSFWorkbook();

    HSSFSheet sheet = getSheet(wb, 1, new int[] { 4000 });

    int currentRow = 0;
    HSSFRow row;
View Full Code Here

  public void generateDeviationSumJobFunction(
      final ExcelReportSetting reportSetting,
      final Map<Object, Object> data) throws ProTransException {
    String excelPath = getExcelPath();
    HSSFWorkbook wb = new HSSFWorkbook();

    HSSFSheet sheet = getSheet(wb, 10, new int[] { 5000, 1000, 5000, 5000,
        5000, 5000, 5000, 5000, 5000, 5000 });

    int currentRow = 0;
View Full Code Here

    return excelPath;
  }

  public void generateSalesGoalReport(ExcelReportSetting reportSetting,
      Map<Object, Object> data) throws ProTransException {
    HSSFWorkbook wb = new HSSFWorkbook();

    HSSFSheet sheet = getSheet(wb, 21, new int[] { 5000, 6000, 5000, 5000,
        5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000,
        5000, 5000, 5000, 5000, 5000, 5000, 5000 }
View Full Code Here

      Map<Object, Object> data) throws ProTransException {

    ImmutableMap<String, Integer> productAreaColumns = new ImmutableMap.Builder<String, Integer>()
        .put("Takstol", 1).put("Garasje", 3).put("Byggelement", 5)
        .build();
    HSSFWorkbook wb = new HSSFWorkbook();

    HSSFSheet sheet = getSheet(wb, 21, new int[] { 5000, 6000, 5000, 5000,
        5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000, 5000,
        5000, 5000, 5000, 5000, 5000, 5000, 5000 }
View Full Code Here

   * @return HSSFWorkbook 对象
   */
  public static HSSFWorkbook output(String sheetName,
      String[] columnPropterties, String[] columnNames, List<?> list)
  {
    HSSFWorkbook workbook = new HSSFWorkbook();
    HSSFSheet sheet = workbook.createSheet(sheetName);
    // 创建第1行,也就是输出表头
    HSSFRow row = sheet.createRow(0);
    HSSFCell cell;
    for (int i = 0; i < columnNames.length; i++)
    {
View Full Code Here

   */
  public static void export2SimpleExcel(String sheetName,
      String[] columnPropterties, String[] columnNames, List<?> list,
      OutputStream out) throws IOException
  {
    wb = new HSSFWorkbook();
    HSSFSheet sheet = wb.createSheet(sheetName);
    // 创建第1行,也就是输出表头
    HSSFRow row = sheet.createRow(0);
    HSSFCell cell;
    for (int i = 0; i < columnNames.length; i++)
View Full Code Here

  /**
   * @Description: 初始化
   */
  private static void init()
  {
    wb = new HSSFWorkbook();
    initStyles();
  }
View Full Code Here

   * @throws IOException
   * @Description: 初始化(带模板文件输入流)
   */
  private static void init(InputStream input) throws IOException
  {
    wb = new HSSFWorkbook(input);
    initStyles();
  }
View Full Code Here

TOP

Related Classes of org.apache.poi.hssf.usermodel.HSSFWorkbook

Copyright © 2018 www.massapicom. 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.