I am working on a plugin for PowerPoint ,which interacts with it when PowerPoint in SlideMaster view.
Depends on content, I need to select Shapes on either SlideMaster or on CustomLayouts.
I have managed to Select them on CustomLayouts, but I did not manage to do that, when Shapes are located on SlideMaster.
I tried to use following approaches:
First approach
presentation.Designs[1].SlideMaster.Shapes[1].Select();
This approach works only when user manually selects a particular slide master. Otherwise i get the exception:
"Shape (unknown member) : Invalid request. To select a shape, its view must be active."
Second approach
presentation.Application.ActiveWindow.View.Slide = document.Designs[2].SlideMaster;
When I use this approach I get the following exception:
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
I did not find any ways to activate a SlideMaster to select shapes on it.
Are the any ways to do that?
Thank you in advance.