public ActionResult Image()
        {
            var p = new ImageReport();

            p.Main();

            return(Ok());
        }
Exemplo n.º 2
0
        private PdfPCell CreateCellHeader(string headerText, string iconText)
        {
            PdfPCell cell = new PdfPCell();
            Font     lato = FontFactory.GetFont("Lato", 8f);

            lato.Color = BaseColor.WHITE;
            Chunk     text = new Chunk("  " + headerText, lato);
            Paragraph p    = new Paragraph();

            p.Add(new Chunk(ImageReport.GetResultTableIcon(iconText), 0, 0));
            p.Add(text);

            cell.AddElement(p);
            cell.BorderColor         = new BaseColor(12, 123, 234);
            cell.BackgroundColor     = new BaseColor(12, 123, 234);
            cell.HorizontalAlignment = Element.ALIGN_CENTER;
            cell.VerticalAlignment   = Element.ALIGN_MIDDLE;

            return(cell);
        }
Exemplo n.º 3
0
 public JsonResult SaveReport([FromBody] ImageReport report)
 {
     _databaseConnection.Add(report);
     _databaseConnection.SaveChanges();
     return(Json(report));
 }