- Code: Select all
static void Main(string[] args)
{
string strSource = @"sample.ppt";
Presentation presentation = null;
try
{
presentation = new Presentation(strSource, FileFormat.Auto);
}
catch (Exception e)
{
Console.WriteLine(e);
throw;
}
presentation?.Dispose();
}
This is the exception that I receive:
System.IndexOutOfRangeException: Value must between 0 and 8 .
at Spire.Presentation.TextStyle.GetListLevelTextStyle(Int32 index)
at spr?.?(spr? A_0, ? A_1)
at spr?..ctor(IActiveSlide A_0, spr? A_1, ? A_2)
at spr?.?(IActiveSlide A_0, spr? A_1, ? A_2)
at spr?..ctor(ShapeCollection A_0, spr? A_1, ? A_2)
at Spire.Presentation.Collections.ShapeList.?(ActiveSlide A_0, spr? A_1, Boolean A_2, ? A_3)
at Spire.Presentation.GroupShape..ctor(ActiveSlide A_0, ArrayList A_1, ? A_2)
at Spire.Presentation.ActiveSlide.?(ArrayList A_0, ArrayList A_1, ? A_2)
at spr?.?(spr? A_0, ? A_1, ?& A_2)
at spr?..ctor(spr? A_0, spr? A_1, ? A_2, ?& A_3)
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)
I have sent a copy of the PPT file through to the support email address.
Darren.