Esempio n. 1
0
 private void appendTableText(StringBuilder text, XWPFTable table)
 {
     //this works recursively to pull embedded tables from tables
     foreach (XWPFTableRow row in table.Rows)
     {
         List <XWPFTableCell> cells = row.GetTableCells();
         for (int i = 0; i < cells.Count; i++)
         {
             XWPFTableCell cell = cells[i];
             text.Append(cell.GetTextRecursively());
             if (i < cells.Count - 1)
             {
                 text.Append("\t");
             }
         }
         text.Append('\n');
     }
 }