Welcome to the ASP.NET MVC feedback portal. We’re happy you’re here! If you have feedback on how to improve the ASP.NET MVC, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Hello, I have an ASP.NET MVC 4 application on a Windows Server 2016 IIS with presentation exporting based on a .potx template file.


When I export the presentation with this code:

private ActionResult SendResponse(string fileName, HttpResponse response)

{

            //Save the PowerPoint Presentation

            Ppt.Save(fileName, FormatType.Pptx, response);


            //Close the PowerPoint presentation

            Ppt.Close();


            return new EmptyResult();

}



The code executes well but the server hangs when doing Ppt.Close() with high CPU and the only way to stop it is by killing the w3wp process for the site.


I open the .potx file in this way:

private void OpenPresentationFromTemplate()

{

            var templateUrl = GetTemplateUrl();


            //Create a new instance of PowerPoint Presentation file

            Ppt = Presentation.Open(HttpContext.Current.Server.MapPath(templateUrl));

}


Thank you