BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to tell if a PPT slide is hidden?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
GS
Guest





PostPosted: Sun Jul 16, 2006 7:18 am    Post subject: How to tell if a PPT slide is hidden? Reply with quote



Hi, from Delphi....
Looping through each slide, I need to determine if it's HIDDEN property is
enabled... i.e. when you are viewing in DISPLAY mode, will that slide be
hidden (not shown), if so, I want to delete it....

I THINK (?) the property I want to look at is ...
ActivePresentation.Slides(2).SlideShowTransition.Hidden (at least according
to the MS docs)
The problem is that this proprty is ALWAYS False (0). In fact the Delphi
compiler tells me that "Comparison always evaluates to False". Stepping
through the code, TransitionObject.Hidden is always 0, even on slides that
are marked as hidden...

Any help greatly appreciated.
Thanks....
George S

Code below


var
lPresentation: PowerPointPresentation;
i: Integer;
sl: _Slide;
TransitionObject: SlideShowTransition;

....
for i := lPresentation.Slides.Count downto 1 do
begin
// For EACH SLIDE
// Get a handle to the current slide
sl := lPresentation.Slides.Item(i);
TransitionObject := sl.Get_SlideShowTransition;
if TransitionObject.Hidden = msoTrue then {this is the line compiler
tells me always evaluates to false}
sl.Delete;
end;
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.