Using "For Each" to iterate over table-rows throws the exception:
"Operation is not valid due to the current state of the object." at the statement "Next", in the following code fragment [run on the sample Invoice.doc]
Dim srcTbl As Table = doc.Sections(0).Body.Tables(4)
Dim destTbl As Table = doc.Sections(0).Body.Tables(5)
For Each row As Row In srcTbl.Rows
I get no errors with the equivalent, but less elegant, loop code:
For i As Integer = 0 To srcTbl.Rows.Count - 1
A minor quibble, but is there something in this kind of iteration I should watch out for?