PPT 2002 query current slide's print step - how?

M

Michael Brown

I'm not sure I've got all the terminology right here, so bear with me...

With PPT 2002 (Object model 10.0), I have some slides that are layered
builds. I.e., as I proceed through my slide show using <view>.Next(), the
current slide index remains the same a few times as the projected image
progresses through the slide's various text/graphics additions, then
eventually increments to the next slide index when I go on to the next
slide.

I've discovered a PowerPoint.Slide.PrintSteps property that seems to
indicate how many times the slide index will remain the same as I
<view>.Next().

Is there some other property I can query that will indicate the current
print step that's being projected?

Thanks....

Mike
 
S

Shyam Pillai

Michael,
I wouldn't rely on PrintSteps as an accurate value under 2002/2003 since it
doesn't account for emphasis/exit animations.
The correct approach would be to read the Timeline object.

Total animations:
Activewindow.Selection.SlideRange(1).TimeLine.MainSequence.Count

Detect mouse-click events:
A single build consitutes animation(s) from slide display/mouse-click to the
next mouse-click (including all timed animations in between). The
SlideShowNextBuild event is fired after it's completion. You can loop thru
the MainSequence and query each animation type and total up the number of
builds in the slide. If you read this information you will be able to track
which build fired using PPT SlideShowNextBuild event or the
SlideShowNextClick event (2003) since there is no inbuilt mechanism to tell
which is current print step in PPT2002.

Dim I As Integer
Dim oSld As Slide
Set oSld = ActivePresentation.Slides(1)
With oSld.TimeLine
For I = 1 To .MainSequence.Count
If .MainSequence(I).Timing.TriggerType = msoAnimTriggerOnPageClick
Then
Debug.Print "On mouse click"
End If
Next I
End With
Set oSld = Nothing
--
Regards
Shyam Pillai

Handout Wizard
http://www.mvps.org/skp/how/
 
M

Michael Brown

Shyam:

Thanks for the tip. I haven't found a case yet in my limited samples where
PrintSteps does not agree with your approach, but I'll defer to your much
greater experience/expertise to be on the safe side.

I've also run into a case or two where both PrintSteps and your method agree
with each other,
but both seem to overestimate reality. Any thoughts on this? I'm still
digging to be sure I'm really seeing what I think I am...

Mike
 

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