Example #1
0
        public FileContentResult GetInOutInspectionReport(int InspectionID)
        {
            PDFManager pdfManager = new PDFManager(Server);
            InOutInspectionPDF inspectionPdf = new InOutInspectionPDF(pdfManager);
            inspectionPdf.GeneratePDF(InspectionID);


            // return the actual PDF
            string fileName = "test.pdf";
            FileContentResult reportResult = GetFileContent(fileName);

            return reportResult;           
            
        }
Example #2
0
 public InOutInspectionPDF(PDFManager manager)
 {
     p = manager;
 }