Saving a PPT

Hi,


I am having a requirement wherein i need to save the PPT and display the downloaded PPT at browser itself rather than saving in a specified disk location.Once the PPT is generated user can open or save the PPT on browser itself.
I have tried to achieve this by converting the PPT into array of bytes and into a memory stream as well, but unfortunately i am unable to download/show the ppt on browser window. Below is my code for your reference :

var pptFile = _powerpointservice.GeneratePPT(chapterName, pptModel);
string fileName = chapterName + “.pptx”;

return File(pptFile, “application/vnd.openxmlformats-officedocument.presentationml.presentation”, fileName);

Please let me know if i am missing anything.

Hi Dhaval,

I have observed your requirement and like to share that Aspose.Slides Presentation class has an overloaded Save method that allows you to save presentation using HTTP stream. This can be helpful to you while saving presentation in a web application using browser to any position of your interest. Please visit this documentation link for your kind reference in this regard.

Many Thanks,