How to get hold on the r.Stream to return the stream instead of creating a PDF and returning it to the browser
I mean having a FileContentResult instead of ActionResult
Posts made by Joop Stringer DC
-
RE: PDF generated using Razor View sometimes stop generating PDF
-
FileContentResult from jsReport
Hi all,
Using ASP.NET - MVC
I would like to know how to configure jsReport to be able to return the generated PDF as FileContentResult.
This because I would like to store the generated PDF in database and don't want to use diskstorage.
I want to use it to send PDF of invoice to customer in an email.public FileContentResult InvoicePDFFile(string viewName, model myMod)
{
<... do jsReport stuff >
return File(fileContent.ToArray(), "application/pdf", fileName );
}