We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

IndexOutOfRangeException when cloning slide

when I clone a slide I have an IndexOutOfRangeException.

The stacktrace is:

System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.UnSafeCharBuffer.AppendString(String stringToAppend)
at System.String.Join(String separator, String[] value, Int32 startIndex, Int32 count)
at System.String.Join(String separator, String[] value)
at ? .(FontClass , FontData )
at ? .(FontClass , IFontData , Boolean , Nullable`1 )
at ? .set_LatinFont(IFontData )
at ? .? ??(IBasePortionFormat , IBasePortionFormat )
at ?? .? ??(IBasePortionFormat , IBasePortionFormat )
at Aspose.Slides.BasePortionFormat.(IBasePortionFormat , IBasePortionFormat )
at ?? .(IParagraphFormat , IParagraphFormat )
at ?.(ITextStyle , ITextStyle )
at Aspose.Slides.BaseSlide.(ITextStyle )
at Aspose.Slides.MasterSlideCollection.(MasterSlide , Boolean )
at Aspose.Slides.MasterSlideCollection.(IMasterSlide , Boolean )
at Aspose.Slides.SlideCollection.AddClone(ISlide sourceSlide)

on another pc I have the same issue, but the following line change:
set_LatinFont(IFontData )
set_EastAsianFont(IFontData )

What can I do? There is some “trick” for making things work?

Thank you

Hi Valerio,

I have observed your comments. Can you please share source presentation and environment details so that we can investigate further to help you out.

Best Regards,