I would like to generate a PDF file for my reporting module. Here is my code in the controller in generating the PDF file.
public ActionResult Reports_CARF(int carf_id= 0)
{
var data = db.Dept_Approval_Data_vw.Where(x => x.carf_id == carf_id && x.request_category == "PETC Local Applications" && x.verified_by != null).ToList();
return new PdfActionResult(data);
}
I have include this following in my controller:
using MvcRazorToPdf;
using iTextSharp.text;
using iTextSharp.text.pdf;
Now, when I try to run this code, I got this error displayed in the browser.
Please advice. Thanks in advance.