Free Support Forum - aspose.com

Custom SlideShow in PPT

Hi,



Is there any method available to get custom slideshow list from PPT?



and one more question,



what is this com.aspose.slides.SlideShowRangeType.SHOW_NAMED_SLIDE_SHOW? How i have to set this value in com.aspose.slides.SlideShowSetting?



Regards,

ShanthiKaruppiah

Dear Shanti,

Thanks for your interest in Aspose.Slides.

Actually, com.aspose.slides.SlideShowRangeType.SHOW_NAMED_SLIDE_SHOW is one of slide show range setting option. There is other option for selecting all and selecting range. Please use the following code snippet for setting the slide show range and feel the difference by using all three options.

Presentation pres = new Presentation("D:\\Aspose Data\\LoadTest.ppt");
short startingSlide = 2;
short endingSlide = 4;

pres.getSlideShowSettings().setRangeType(SlideShowRangeType.SHOW_NAMED_SLIDE_SHOW );
pres.getSlideShowSettings().setManualAdvance(false);
pres.getSlideShowSettings().setStartingSlide( startingSlide);
pres.getSlideShowSettings().setEndingSlide( endingSlide);
pres.getSlideShowSettings().setLoopUntilStopped(true);

for (int i = startingSlide; i <= endingSlide; i++)
{
Slide sld = pres.getSlideByPosition(i);

sld.getSlideShowTransition().setAdvanceOnClick(false);
sld.getSlideShowTransition().setAdvanceOnTime(true);

//Advance after 2 seconds
sld.getSlideShowTransition().setAdvanceTime(2);
}

pres.write("d:\\output.ppt");

Thanks and Regards,

Hi,

Thanks for your reply.

Is there any method available to get custom slideshow list from PPT?

In PPT, having the following Set Up Show options,

  • Show type
  • Show slides
  • Show options
  • Advance Slides
  • Multiple monitors
  • Performance

Show slides having the following options
  • All
  • Range
  • Custom show

From my understanding i can set the options using com.aspose.slides.SlideShowSettings like this,
All - pres.getSlideShowSettings().setRangeType(SlideShowRangeType.SHOW_ALL)


Range - pres.getSlideShowSettings().setRangeType(SlideShowRangeType.SHOW_SLIDE_RANGE);
pres.getSlideShowSettings().setStartingSlide( startingSlide);
pres.getSlideShowSettings().setEndingSlide( endingSlide);

Custom show -
pres.getSlideShowSettings().setRangeType(SlideShowRangeType.SHOW_NAMED_SLIDE_SHOW);
;
my doubt is how i can set the value for this custom Slide show?
I think, there is no set and get method for this type.
Please provide custom slide show option.

Regards,
ShanthiKaruppiah

Dear ShanthiKaruppiah,

I have discussed the issue with our development team and feel sorry to share that we have only SlidesShowSettings class but there is no possibility to work with custom or named slide shows.

Thanks and Regards,

Hi Mudassir,


Can you specify the time frame when this Custom Slide show will be available ?

Thanks,
Manivannan
(ZOHO Corp).

Hi Manivannan,

As I have shared earlier that support for custom slide shows is not available in Aspose.Slides for .NET. However, I have now added an issue with ID 27999 in our issue tracking system as a new feature request to further investigate the possibility of implementing the mentioned feature. I will be share the further response with you on the basis of investigations shared by our development team.

Thanks and Regards,

The issues you have found earlier (filed as 27999) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.