"Target presentation doesn't contain slides"

I’m getting this error when I try to open up a pot file (for example: http://www.student.lu.se/~iht00ran/CURRENCY.POT) and then clone slides into that presentation. Weird thing is, if I open the pot file and save it as a new pot file (Powerpoint 2003), it works. Another weird thing is if I debug my application and look at the Presentation object after loading the pot file, it has one slide, so the error message doesn’t make a lot of sense.

I don’t know if this is related, but the stack trace contains some weird characters:

[PowerPointException: Target presentation doesn’t contain slides.]
Aspose.Slides.Slide.ৡ(Presentation ৢ) +1189
Aspose.Slides.Presentation.ਚ(Slide ਛ, Presentation ৢ, SortedList ঢ়) +599
Aspose.Slides.Presentation.CloneSlide(Slide srcSlide, Int32 position, Presentation pres, SortedList idList) +600
Test.Admin.Default.UpdateThumbnails() in D:\Coding\Websites\Test\Test\Default.aspx.cs:168
Test.Admin.Default.Page_Load(Object sender, EventArgs e) in D:\Coding\Websites\Test\Test\Default.aspx.cs:31
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +13
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +45
System.Web.UI.Control.OnLoad(EventArgs e) +80
System.Web.UI.Control.LoadRecursive() +49
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3743
Any help on this would be much appreciated.

Cheers,
Rickard

Dear Rickard,

There is only one problem. Aspose.Slides can’t work with presentations without slides.
We have in our planes to support it but this functionality is not ready yet.

Ah, ok. Hmm. Is there any way to detect that a presentation does not contain any slides? Because when I open it, the Slides collection does contain a slide.

Also, how come it works when I open the pot in Powerpoint and then save it under a different name (but still as a pot)?

Check Slides.LastSlidePosition property.
If presentation doesn’t have slides then LastSlidePosition should be equal to 0.

I’m not sure but looks like MS PowerPoint recognize these files only by extension.
Ppt, Pot and Pps files are the same. At least I didn’t find any differencies.
So you can save it with any extension you need.

Ok, thanks. Do you have an estimate when it might be supported?

I will check if it can be done in short time.
If yes then probably end of next week.