ISlide.SaveAsImage() : StackOverflowException with smart art

Technical support for Presentation

Moderator: iceblue support

ISlide.SaveAsImage() : StackOverflowException with smart art

Postby testnob » Fri Jan 13, 2017 8:55 am

Hello,

I came accros a StackOverflowException with the ISlide.SaveAsImage() method, using the attached PPTX file.
It contains one slide, with a converging radial diagram of 5 elements.

The C# code used to convert it is :

Code: Select all
string inputFilePath = "test.pptx";
string outputDirPath = "thumbs";

using (SpirePres.Presentation presentation = new SpirePres.Presentation())
{
   presentation.LoadFromFile(inputFilePath);
               
    string fileName;

    for (int i = 0; i < presentation.Slides.Count; i++)
    {
      fileName = "thumbnail_" + i + ".jpg";

      using (Image img = presentation.Slides[i].SaveAsImage())
        {
         img.Save(Path.Combine(outputDirPath, fileName), System.Drawing.Imaging.ImageFormat.Jpeg);
        }
   }
}


If the diagram only contains the root element, no exception is thrown.
You do not have the required permissions to view the files attached to this post.
testnob
 
Posts: 7
Joined: Mon Apr 06, 2015 3:18 pm

Re: ISlide.SaveAsImage() : StackOverflowException with smart

Postby Betsy.jiang » Fri Jan 13, 2017 9:23 am

Dear testnob,

Thanks for your inquiry.
I have noticed the issue and posted it to our Dev team. Once it is fixed, we will inform you.
Sorry for inconvenience caused.

Sincerely,
Betsy
E-iceblue support team
User avatar
Betsy.jiang
 
Posts: 1433
Joined: Tue Sep 06, 2016 8:30 am

Re: ISlide.SaveAsImage() : StackOverflowException with smart

Postby Betsy.jiang » Wed Mar 01, 2017 7:17 am

Dear testnob,

Thanks for waiting.
Now the issue has been fixed in Spire.Presentation Pack Hotfix Version:2.7.39, welcome to test it.
Looking forward to your feedback.

Sincerely,
Betsy
E-iceblue support team
User avatar
Betsy.jiang
 
Posts: 1433
Joined: Tue Sep 06, 2016 8:30 am

Re: ISlide.SaveAsImage() : StackOverflowException with smart

Postby testnob » Mon Mar 06, 2017 8:42 am

Hello,

thank you for your answer : I'm going to test this hotfix this week and let you know.
testnob
 
Posts: 7
Joined: Mon Apr 06, 2015 3:18 pm

Re: ISlide.SaveAsImage() : StackOverflowException with smart

Postby testnob » Mon Mar 06, 2017 2:44 pm

I can confirm the bug is fixed.

Thank you !
testnob
 
Posts: 7
Joined: Mon Apr 06, 2015 3:18 pm

Re: ISlide.SaveAsImage() : StackOverflowException with smart

Postby Betsy.jiang » Tue Mar 07, 2017 1:28 am

Dear testnob,

Thanks for your feedback.
Please feel free to contact us if there is any question, we are here for help :) .

Sincerely,
Betsy
E-iceblue support team
User avatar
Betsy.jiang
 
Posts: 1433
Joined: Tue Sep 06, 2016 8:30 am


Return to Spire.Presentation

Who is online

Users browsing this forum: No registered users and 0 guests