public ActionResult GenerateIRS941Form(PayrollReportViewModel vm) { PDFFormManager pdf = new PDFFormManager(); ComputePayrollForPerson p = new ComputePayrollForPerson(this.unitOfWork, vm.PersonPrimaryInfoID.GetValueOrDefault(), vm.StartDate.GetValueOrDefault(), vm.EndDate.GetValueOrDefault()); byte[] form = pdf.FillIRS941Form(p.GetReportPayrollCompanyTotal()); Response.AppendHeader("Content-Disposition", "inline; filename=IRS941Form.pdf"); return File(form, "application/pdf"); }
//public ActionResult SetCheckData(bool isAVendor, int VendorID = 0, int PersonPrimaryInfoID = 0) //{ // return View(); //} public ActionResult Print(CheckData checkData) { // MemoryStream checkPDF = new MemoryStream(); PDFFormManager pdfManager = new PDFFormManager(); //checkData.PayTo = "The Church Supply Company"; //checkData.Date = "June 7, 2018"; //checkData.AmountAlpha = "*********************************************************************************************************"; //checkData.AmountNumeric = "175.00"; string newCheckPath = pdfManager.FillCheckData(checkData); return File(newCheckPath, "application/pdf", String.Format("Check_{0}_{1}.pdf", FormatNameForCheck(checkData.PayTo), DateTime.Now.ToString("yyyyMMddHHmmss"))); }