Author Message

Posted: Thu Feb 07, 2008 3:05 pm   Post subject: Hidden slides on PPT

Hi,

If I use FlashSpring Server to convert a PPT presentation with hidden slides, the result includes all slides.
The only way I found to know wich slides are hidden is by reading tags "hidden" in the xml content.

1. Can I know this information differently??
2. Can I convert a presentation excluding hidden slides?

Thanks in advance.


Profile profile test

Posted: Fri Feb 08, 2008 6:49 am   Post subject:

Dear Caperu,

I am happy to answer your questions:

Quote:
1. Can I know this information differently??


To figure out which slides are hidden, please, use the sample below:

using System;
using System.Collections.Generic;
using System.Text;

// if you have office 2003 installed please use the following using directive
using Microsoft.Office.Core;

// office 2000 users should use "using Office" directive
//using Office;

using PowerPoint;

namespace flashspring_samples
{
class PresentationInfo
{
static void Main(string[] args)
{
if (args.Length != 1)
{
Console.WriteLine("03_access_presentation.exe <input Ppt>");
return;
}

// Create FlashSpring Instance
FlashSpringAPI.FlashSpring fs = new FlashSpringAPI.FlashSpring();
try
{
// Open presentation file passed as first command line parameter
fs.OpenPresentation(args[0]);

// Please note that it is needed to use explicit cast from Object to PowerPoint.Presentation
PowerPoint.Presentation pres = (PowerPoint.Presentation)(fs.Presentation.Object);

foreach (PowerPoint.Slide slide in pres.Slides)
{
Console.Write("Slide " + slide.SlideIndex + ": ");

Console.Write("hidden: " + ((slide.SlideShowTransition.Hidden == Microsoft.Office.Core.MsoTriState.msoTrue) ? "yes" : "no") + " title: ");

if (slide.Shapes.HasTitle == MsoTriState.msoTrue)
{
PowerPoint.Shape titleShape = slide.Shapes.Title;

if (
(titleShape.HasTextFrame == MsoTriState.msoTrue) &&
(titleShape.TextFrame.HasText == MsoTriState.msoTrue)
)
{
Console.WriteLine(titleShape.TextFrame.TextRange.Text);
}
else
{
Console.WriteLine("-");
}
}
}
}
catch (Exception)
{
Console.WriteLine("Error: " + fs.LastErrorDescription);
}
}
}
}

Quote:
2. Can I convert a presentation excluding hidden slides?


You can convert the presentation giving it indices that are not hidden. You can do it using the parameter slideRange from one of the following mehtods:

GenerateFlash
GenerateCompoundPresentation
GenerateSolidPresentation
GenerateStandaloneSlides

Feel free to ask any questions you have. I will be happy to help.


Profile profile test

Posted: Fri Feb 08, 2008 8:43 am   Post subject: Hidden slides on PPT

Hello Yulia,

using the slideRange is a good idea... :roll:
but can you provide me the sample in Java language, please?

Thanks a lot.


Profile profile test

Posted: Fri Feb 08, 2008 1:49 pm   Post subject:

Dear Caperu,

Thank you for the questions.

In the beginning of March we are planning to release a new version that will allow you to figure out if the slide is hidden or not.

If you would like to have Java sample it will be considered as a consulting service. You may contact support@flashspring.com for more details.

Thanks!


Profile profile test

Posted: Fri Feb 08, 2008 1:52 pm   Post subject: Hidden slides on PPT

Perfect!

I will wait for the new version.
Thank you very much.


Profile profile test
Display posts from previous:  Sort by  

  


Who is online
Who is online In total there are 10 users online :: 3 registered, 0 hidden and 7 guests (based on users active over the past 5 minutes)
Most users ever online was 108 on Thu Nov 21, 2013 3:41 pm

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]