Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello,
my query is that i'm using this code to get each cell of a table of a word document

XML
foreach (word.Table tables in doc.Tables)
            {
                int r = tables.Rows.Count;
                for (int i = 1; i <= r; i++)
                {
                    foreach (word.Cell cell in tables.Rows[i].Cells)
                    {
                        //any code
                    }
                }                
            }


bt it's showing error if any cell in table is merged...
i want to replace text of each cell with some other text...
plz help me with this
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900