.NET component
Reads Word Documents DOC DOCX RTF

Word Reader .NET

• File Formats: Word Document DOC, DOCX, RTF.
• High performance (~50 paragraphs per second).
• Does not require Microsoft Word.
• Royalty-Free. No extra cost for Server license.
• 6 Months: Free Support + Free Updates.
Evaluation Version
Download  |   Online Demo
Developer License - $95
Buy now  |   Price List

Skip Navigation Links

Word Reader .NET component



Learning Resources




News & Releases

May 11, 2016
Version 2.4 Update
Word Reader .NET component
February 01, 2016
Version 2.4 Update
Word Reader .NET component
May 13, 2013
Version 2.4 Update
Word Reader .NET component
April 05, 2013
Version 2.4 New Release!
Word Reader .NET component
March 21, 2013
Version 2.3 Update
Word Reader .NET component
March 09, 2013
Version 2.3 New Release!
Word Reader .NET component
February 20, 2013
Version 2.2 New Release!
Word Reader .NET component

Merged Cells

"I have a question regarding how to retrieve merged cells in the table. Is there the way to know either the cell is merged with another one by horisontal or by vertical?"
David Rodrigez

There are many different propetries in the cell Style. You need two of them SpanRow and SpanColumns. But firstly you need to get the cell from cell collection of the row that is in the collection of row in the table. Good luck!

  1. // Read a .doc file
  2. Document Doc = new Document();
  3. Doc.ReadDoc(@"WordTable.doc");
  4.  
  5. Section sec1 = Doc.Sections[0];
  6. Table table1 = sec1.Nodes[0] as Table;
  7.  
  8. // search cell by cell of the table
  9. for (int r = 0; r < table1.Rows.Count; r++)
  10. {
  11.    Row row = table1.Rows[r];
  12.    for (int c = 0; c < row.Cells.Count; c++)
  13.    {
  14.       Cell cell = row.Cells[c];
  15.       console.Write("CELL[" + r.ToString() + "," + c.ToString() + "]: ");
  16.       // the condition checks is the cell merged
  17.       if (cell.Style.SpanRows > 1 || cell.Style.SpanColumns > 1)
  18.       {
  19.          Console.Write("rowspan=");
  20.          Console.Write(cell.Style.SpanRows.ToString() + ", ");
  21.          Console.Write("colspan=");
  22.          Console.Write(cell.Style.SpanColumns.ToString() + "\n");
  23.       }
  24.       else
  25.          Console.Write("single cell\n");
  26.    }
  27. }