Quantcast
Channel: General Office Development forum
Viewing all articles
Browse latest Browse all 2257

VSTO Powerpoint, exception when trying to get current slide index when the selection is between slides

$
0
0

Hey,

I want to insert a new slide after the currently selected slide but there are some problems when the slide selection is between slides. I am trying to get the current slide index with:

int index = Globals.ThisAddIn.Application.ActiveWindow.View.Slide.SlideIndex;

This however throws exception:

View (unknown member) : Invalid request.  No slide is currently in view.

Is there any way to get the currently selected slide if the selection is between slides?


Viewing all articles
Browse latest Browse all 2257

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>