Package com.extentech.ExtenXLS

Examples of com.extentech.ExtenXLS.WorkSheetHandle


   *
   *
   */
  protected void tesSplitCols() {
    try {
      WorkSheetHandle sheet= workbook.getWorkSheet(0);
      sheet.splitCol(5, 5000); // split at col 5 (F), set divider at 1000 col units
    } catch (Exception e) {
      System.out.println("Error setting Split panes: " + e.getMessage());
    }
    writeFile(workbook, "testSplitPanesCol.xls")
  }
View Full Code Here


   *
   *
   */
  protected void tesSplitRows() {
    try {
      WorkSheetHandle sheet= workbook.getWorkSheet(0);
      sheet.splitRow(10, 5000); // split at row 10, set divider at 5000 twips
    } catch (Exception e) {
      System.out.println("Error setting Split panes: " + e.getMessage());
    }
    writeFile(workbook,"testSplitPanesRow.xls");   
  }
View Full Code Here

   *
   */
  protected void testFreezePanes() {
    String fileName = "testFreezePanes.xls";
    try {
      WorkSheetHandle sheet= workbook.getWorkSheet(0);
      // try freezing
      sheet.freezeRow(9);
      sheet.freezeCol(17);
    } catch (Exception e) {
      System.out.println("Error setting Freeze panes: " + e.getMessage());
    }
    writeFile(workbook, fileName);   
  }
View Full Code Here

TOP

Related Classes of com.extentech.ExtenXLS.WorkSheetHandle

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.