Package org.apache.poi.xwpf.usermodel

Examples of org.apache.poi.xwpf.usermodel.ICell


   private void appendTableText(StringBuffer text, XWPFTable table) {
      //this works recursively to pull embedded tables from tables
      for (XWPFTableRow row : table.getRows()) {
          List<ICell> cells = row.getTableICells();
          for (int i = 0; i < cells.size(); i++) {
              ICell cell = cells.get(i);
              if (cell instanceof XWPFTableCell) {
                  text.append(((XWPFTableCell)cell).getTextRecursively());
              } else if (cell instanceof XWPFSDTCell) {
                  text.append(((XWPFSDTCell)cell).getContent().getText());
              }
View Full Code Here

TOP

Related Classes of org.apache.poi.xwpf.usermodel.ICell

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.