private void AddGraficoPercentiles(int y, PdfPage page) { var text = new PdfTextArea( Function_Library.FontTitulo, Color.Black, new PdfArea(pdfDocument, 80, y, 450, 20), ContentAlignment.MiddleCenter, PDF_Resources.Title_GraficosResultadosGenerales); page.Add(text); var chart = new Ar_Chart(ChartReportClass.PERCENTILES, 1000, 650, datos.TNotaciones.ChR_TNotaciones); PdfImage grafico = Function_Library.ToPDFImage(chart.ToBinary(), pdfDocument); if (grafico != null) { page.Add(grafico, 55, y + 25, 170); } var lArea = new PdfArea(pdfDocument, 55, y + 20, 490, 280); var r = new PdfRectangle(pdfDocument, lArea, Color.LightGray); page.Add(r); }
private void AddGraficoErrores(int y, PdfPage page) { var text = new PdfTextArea( Function_Library.FontTitulo, Color.Black, new PdfArea(pdfDocument, 80, y, 450, 20), ContentAlignment.MiddleCenter, PDF_Resources.Title_GraficoErrores); page.Add(text); var chart = new Ar_Chart(ChartReportClass.ERRORES, 1000, 600, datos.ChR_Errores); PdfImage grafico = Function_Library.ToPDFImage(chart.ToBinary(), pdfDocument); if (grafico != null) { page.Add(grafico, 55, y + 25, 200); } AddLeyenda(y + 95, page, PDF_Resources.Leyend_EComision, PDF_Resources.Leyend_EOmision, PDF_Resources.Leyend_IA); var lArea = new PdfArea(pdfDocument, 55, y + 20, 490, 250); var r = new PdfRectangle(pdfDocument, lArea, Color.LightGray); page.Add(r); }