F
Francisco Lopez
I'm writing an application that make some operations with some objects stored
as inlineshapes in a word document, but when I insert an Autoshape in Word
XP, and an activeX object (CalendarControl) as an inline object, then
InlineShapes.Count returns 1 (I guess because of the calendar control), but
when I try to get the item with InlineShapes.Item(1), it throws an exception,
saying that the item is out of range.
I must get the CalendarControl with InlineShapes.Item(2), despite that the
count property returned that there are only 1 element (count returned 1).
When I check Shapes.Count it returns 1 as well. (I guess because of the
autoshape)
I must get the AutoShape with Shapes.Item(1);
So it seems that there are 2 collections (InlineShapes and Shapes) that
share the indexes.
Is this a bug?
How could I now which index is a InlineShape and which one is a Shape? in
order to not to get the exception when I use the .Item(index) member?
Thanks.
as inlineshapes in a word document, but when I insert an Autoshape in Word
XP, and an activeX object (CalendarControl) as an inline object, then
InlineShapes.Count returns 1 (I guess because of the calendar control), but
when I try to get the item with InlineShapes.Item(1), it throws an exception,
saying that the item is out of range.
I must get the CalendarControl with InlineShapes.Item(2), despite that the
count property returned that there are only 1 element (count returned 1).
When I check Shapes.Count it returns 1 as well. (I guess because of the
autoshape)
I must get the AutoShape with Shapes.Item(1);
So it seems that there are 2 collections (InlineShapes and Shapes) that
share the indexes.
Is this a bug?
How could I now which index is a InlineShape and which one is a Shape? in
order to not to get the exception when I use the .Item(index) member?
Thanks.