Unmerge word cells VSTO

i need unmerge word cells to get the number of merged rows Like this table, but I can't find a function in a VSTO object model. Any ideas for this trouble?

Answers


If you just need the information you can probably get it more efficiently by reading and parsing the Table.Range.WordOpenXML markup. Table definitions are very similar to HTML and can give you the "spans" without needing to change the original table structures. But if you want to use the approach you're considering, record a macro in Word while unmerging cells and that will give you the basic syntax.


Need Your Help

Replace string with image

php xml wordpress

I'm looking for a way to replace certain strings with an image. All strings are enclosed in {} and when the code sees the [} what's inside will be read and what it equals will become the specific ...