Slide ID not showing Giving Exception

A

Abhishek

Hi!

I am facing a peculiar problem
I'll try and explain the problem to best of my ability.
I am working on the Timeline of a PPT.
I am putting the code below so that it becomes more understandable

for (int iSeq =0 ;iSeq<m_PPTSlide.TimeLine.MainSequence.Count ;iSeq++)

{

Effect sEffect= m_PPTSlide.TimeLine.MainSequence[iSeq+1];

SID=sEffect.Shape.Id.ToString(); --> This statement raises an exception
in the case of media objects , it executes perfectly in all other objects.

}




I need to store this information to extract the animationindex and the
animation type for all the shapes inserted on the slide.
What i cannot get is that if i can get all the information for al the other
objects why can't i get the information for the media as well
I basically need all the animation indexes, their animation type, and the
shape or media they are assigned to.
In case of media files it shows as the animation index as 1 or 0 or any
other value but does not display in the timeline.
Is there any other way i can achieve this
Please Help


Abhishek
 
S

Shyam Pillai

Abhishek,
This is a known issue with the object model w.r.t media objects. You will
also find that there is no enumeration constant available for the Blink
animation.
 
A

Abhishek

Shyam Pillai said:
Abhishek,
This is a known issue with the object model w.r.t media objects. You will
also find that there is no enumeration constant available for the Blink
animation.

--
Regards,
Shyam Pillai

http://skp.mvps.org/


Is there any workarounds?
Any possible way i can get the information required
 
A

Abhishek

Steve Rindsberg said:
Need more detail.

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
I am facing a peculiar problem
I'll try and explain the problem to best of my ability.
I am working on the Timeline of a PPT.
I am putting the code below so that it becomes more understandable

for (int iSeq =0 ;iSeq<m_PPTSlide.TimeLine.MainSequence.Count ;iSeq++)

{

Effect sEffect= m_PPTSlide.TimeLine.MainSequence[iSeq+1];

SID=sEffect.Shape.Id.ToString(); --> This statement raises an exception
in the case of media objects , it executes perfectly in all other objects.

}




I need to store this information to extract the animationindex and the
animation type for all the shapes inserted on the slide.
What i cannot get is that if i can get all the information for al the other
objects why can't i get the information for the media as well
I basically need all the animation indexes, their animation type, and the
shape or media they are assigned to.
In case of media files it shows as the animation index as 1 or 0 or any
other value but does not display in the timeline.
Is there any other way i can achieve this
Please Help
 
A

Abhishek

Steve Rindsberg said:
Try working with .DisplayName instead of ID

Dim X as Long

For X = 1 to ActivePresentation.Slides(1).TimeLine.MainSequence.Count
With ActivePresentation.Slides(1).Timeline.MainSequence(x)
debug.print .DisplayName
debug.print .Index
End with
Next

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================

I have already tried this . Though it gives me the display name but that
does not help much.
Since the display name is different from the Shapename so i am unable to
compare them
This method works for all objects but not for media objects

Regards,
Abhishek
 
Top