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