I am use your ActiveX control for a client and am so far very
happy with what I’ve found, with one minor exception. Your control
implements the method
SlideShowOpenAndPlay(Document, bFullScreen, bShowWebToolbar,
bLoopUntilStopped, bShowScrollBar, WebUsername, WebPassword)
and I am wondering if there is a way of specifying a start and end slide
for a show – that is, to only play a range of slides from within a given
presentation? Something like the commandline /R=n-m switch that the
older PowerPoint Viewer application implemented.
Also, how complicated would it be to fire an event when navigating from
the last slide?
Any feedback would be much appreciated.
One Response to “Only play a range of slides from within a given”
Leave a Reply
You must be logged in to post a comment.
August 28th, 2009 at 1:12 am
The component has some other methods available. You can use the SlideGotoPage method to set the start page.
The component supports the office automation. You can get the current show position.
long nPos = OA1.ActiveDocument.SlideShowWindow.View.GetCurrentShowPosition()
long nCount = OA1.SlideGetCount()
if(nPos == nCount)
do…
helpstring(“Exits the slide show play window.”)
HRESULT SlideShowExit();
helpstring(“Goes to the first slide in the opened PowerPoint file.”)
HRESULT SlideGotoFirst();
helpstring(“Goes to the previous slide in the opened PowerPoint file.”)
HRESULT SlideGotoPrevious();
helpstring(“Goes to the next slide in the opened PowerPoint file.”)
HRESULT SlideGotoNext();
helpstring(“Goes to the last slide in the opened PowerPoint file.”)
HRESULT SlideGotoLast();
helpstring(“Goes to the specified slide in the opened PowerPoint file based on the index.”)
HRESULT SlideGotoPage(long nPage);
helpstring(“Returns the count of slides.”)
HRESULT SlideGetCount([out,retval] long* nCount);