Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Fri Jan 08, 2016 10:02 pm

Hi,

Our company is evaluating Spire.Presentation and considering switching to it from a competitor's product. We've tested the free version on a number of slides and been mostly satisfied, but we did encounter a bug trying to open a presentation file containing animations. Overall we prefer your library and would like to switch from the competing product if we can get this resolved.

Attached is the presentation file the error occurred on. Here is my sample code to test it:

Code: Select all
Console.WriteLine(Assembly.GetAssembly(typeof(Presentation)).GetName());
using (var pres = new Presentation("Animated.pptx", FileFormat.Auto))
{
    Console.WriteLine("Opened presentation with " + pres.Slides.Count + " slides");
}


And here is the output from running it on my PC:

Code: Select all
Spire.Presentation, Version=2.4.27.11040, Culture=neutral, PublicKeyToken=663f351905198cb3

Unhandled Exception: System.ArgumentOutOfRangeException: Index was out of range.Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.Collections.SortedList.GetKey(Int32 index)
   at Spire.Presentation.Drawing.Animation.AnimationFilterEffect.?(String A_0)
   at Spire.Presentation.Drawing.Animation.AnimationFilterEffect.Init(spr? nodeBhv)
   at Spire.Presentation.Collections.AnimationEffectCollection.?(spr? A_0)
   at Spire.Presentation.Collections.AnimationEffectCollection.?(spr? A_0)
   at Spire.Presentation.Collections.AnimationEffectCollection.?(spr? A_0)
   at Spire.Presentation.Collections.AnimationEffectCollection.?(spr? A_0)
   at Spire.Presentation.Drawing.Animation.TimeLine.?(spr? A_0)
   at spr?.?(spr? A_0)
   at spr?..ctor(spr? A_0, spr? A_1, spr? A_2)
   at spr?.?(spr? A_0)
   at spr?.?(Stream A_0)
   at spr?.?(Stream A_0)
   at spr?..ctor(String A_0, spr? A_1)
   at Spire.Presentation.Presentation.LoadFromFile(String file, FileFormat fileFormat)
   at Spire.Presentation.Presentation..ctor(String file, FileFormat fileFormat)
   at SpireBug.Program.Main(String[] args) in c:\users\robert.peele\src\tmp\SpireBug\SpireBug\Program.cs:line 27


Regards,
Robert

rspeele
 
Posts: 2
Joined: Fri Jan 08, 2016 9:46 pm

Mon Jan 11, 2016 2:29 am

Hi Robert,

Thanks for your posting and using Spire.Presentation.
I have recreated the error with your pptx document on my end and have forwared it to our dev team.
We will inform you when it is resolved. Welcome to write to us again for futher problems.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Tue Apr 05, 2016 8:47 am

Hi,

Thanks for waiting.
Your issue has been resolved. Welcome to download and test Spire.Presentation Pack Hotfix Version:2.5.21.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Fri Apr 08, 2016 7:51 am

Hi,

How did new version work on your side?
Thanks for your feedback in advance.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Fri Apr 15, 2016 9:45 pm

Hi,

I can confirm that the new version fixes this bug. In the past couple months we've implemented some workarounds for the problems that we were having, so our client isn't as eager to switch, but I will definitely keep your library in mind for the future.

Thanks,
Robert

rspeele
 
Posts: 2
Joined: Fri Jan 08, 2016 9:46 pm

Mon Apr 18, 2016 2:32 am

Hi,

Thanks for your feedback.
Welcome to feel free to write to us when you have any problems.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.Presentation