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.