Skip to content

Send the PdfResult as an Email #15

Description

@velikocakk

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();
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions