Calling Cut or Copy on ShapeRange with msoInkComment Shape fails

J

jtencate

I am developing an add-in for powerpoint in C# and as part of its
functionality it needs to be able to grab the background of the slide as an
image. To do this I remove the shapes on the slide by using:


Slides.Shapes.Range(null).Cut();


I then export the slide to an image then add the shapes back in using:


Slides.Shapes.Paste();


Everything works fine until I have shapes of type msoInkComment. If that
type exists in the ShapeRange I get the error:

'The method or operation is not implemented'


I also get this error if I try to copy a ShapeRange that contains
msoInkComments. I am guessing that this means that the msoInkComment type
does not implement 'Cut' and 'Copy'.


The question I have is: A) Am I doing the removal of shapes wrong or, B) is
there another way to get the background out of a slide seperately.


Thanks for any help!


-John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top