Replies: 1 comment
-
I think I found solution presentation.ByteArray and returns Stream |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to save it into a file for download?
I am using this code but it give me error "Cannot access a closed Stream"
using (var ms = new MemoryStream())
{
presentation.SaveAs(ms);
return File(ms.ToArray(), "application/vnd.openxmlformats-officedocument.presentationml.presentation", "presentation.pptx");
}
Beta Was this translation helpful? Give feedback.
All reactions