C# and word interop,
I have a word document with some textboxs (msoTextBox shapes), the problem that I can’t iterate through the shapes collection with the code below :
foreach (Shape shape in WordDocument.Shapes)
{}
although when setting a breakpoint in the loop line I can see that WordDocument.Shapes.Count returns 4.
I note that textboxs are inserted using open xml sdk.
I’ve found there’s a problem when textboxes are used. Take a look at this solution.