You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I want to send the PdfResult as an email. I could not convert the RdfResult to MemoryStream.
The following code needs to be run but It's not working.
How can I fix this problem? Thank you.
public ActionResult test() {
PdfResult pdf1 = new PdfResult();
var context = ControllerContext;
MemoryStream asPdf = pdf1.ExecuteResult(context);
//other lines
return View();
}
The text was updated successfully, but these errors were encountered:
Hello,
I want to send the PdfResult as an email. I could not convert the RdfResult to MemoryStream.
The following code needs to be run but It's not working.
How can I fix this problem? Thank you.
public ActionResult test() {
PdfResult pdf1 = new PdfResult();
var context = ControllerContext;
MemoryStream asPdf = pdf1.ExecuteResult(context);
//other lines
return View();
}
The text was updated successfully, but these errors were encountered: