Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
developer
active.documents
automation
binary.file_format
clipboard.dde
com.add_ins
hosting.controls
internet_other
office.sdks
officedev
officedev.other
outlook.forms
outlook.vba
smarttags
vba
web.components
  
 
date: Fri, 20 Jun 2008 06:26:01 -0700,    group: microsoft.public.officedev        back       


how can i get total number of slides in a powerpoint slide from c#   
hi,

i have included com libraries and i have access to any method but i can not 
find which method returns total number of slides. anybody has a idea? i 
crossed all msdn ( at leas for 2 hours ) and googled but couldnt find 
solution:( i have visual studio 2008 and office 2007 and .net3.5 installed.
date: Fri, 20 Jun 2008 06:26:01 -0700   author:   ahmetozan

RE: how can i get total number of slides in a powerpoint slide from c#   
Hi,

Something like that should do the job :

ApplicationClass pptApplication = null;
Presentation pptPresentation = null;

pptApplication = new ApplicationClass();
pptPresentation = pptApplication.Presentations.Open(...);
int slidesCount = pptPresentation.Slides.Count;

Cheers
G.

"ahmetozan" wrote:

> hi,
> 
> i have included com libraries and i have access to any method but i can not 
> find which method returns total number of slides. anybody has a idea? i 
> crossed all msdn ( at leas for 2 hours ) and googled but couldnt find 
> solution:( i have visual studio 2008 and office 2007 and .net3.5 installed.
date: Tue, 22 Jul 2008 01:30:00 -0700   author:   Guillaume

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us