Open surya5353 opened 6 years ago
Hello, @surya5353 !
I Found out a working example for your question. First, I had to wrote my own "Creator" method
And my controller looks like following:
public ActionResult First()
{
var test = PDFWorker.CreatePDF();
test.Save("F:/RiderProjects/rzn/ConfDataRZN/dxf/test.pdf");
Response.Clear();
Response.ContentType = "application/pdf";
if (test.page_Cur == null) {
test.CreatePDF();
}
test.formatter.Create(test, Response.OutputStream);
Response.End();
return null;
}
Dear all,
Unable to return web response in MVC5. Here is my code.
`public ActionResult DownloadPdfDetailedAnalysis() {
}`
i want to return as pdf and open in new tab