F
fmamstr
Currently I met a problem for Office Development. The problem is below:
we are developing Office add-ins, one feature is trying to insert some
images into a PowerPoint "slide", at the first beginning in a typical first
slide, there is a "Title" and "SubTitle" text box, then we insert 2 pictures
which got from another Excel process, we use "ClipBoard" and
Slide.Shapes.PasteSpecial(), and the 2 pictures are named "Picture 2" &
"Picture 3", at this time we insert another picture into current slide, and
this time we found the names of the shape inside current slide are: "Title
1", "SubTitle 1", "Picture 2", "Picture 3", "Picture 2", so there are 2
shapes with the same name "Picture 2", so I'm wondering how does powerpoint
manage the shapes in the slide? In my opinion, the shape name should be used
as a key to distinguish each other. Is this behavior expected? Because
sometimes I found the new inserted picture will be named "Picture X", which
is different from the name that already in the slide. I'm a little confused.
Thanks.
we are developing Office add-ins, one feature is trying to insert some
images into a PowerPoint "slide", at the first beginning in a typical first
slide, there is a "Title" and "SubTitle" text box, then we insert 2 pictures
which got from another Excel process, we use "ClipBoard" and
Slide.Shapes.PasteSpecial(), and the 2 pictures are named "Picture 2" &
"Picture 3", at this time we insert another picture into current slide, and
this time we found the names of the shape inside current slide are: "Title
1", "SubTitle 1", "Picture 2", "Picture 3", "Picture 2", so there are 2
shapes with the same name "Picture 2", so I'm wondering how does powerpoint
manage the shapes in the slide? In my opinion, the shape name should be used
as a key to distinguish each other. Is this behavior expected? Because
sometimes I found the new inserted picture will be named "Picture X", which
is different from the name that already in the slide. I'm a little confused.
Thanks.