public void AddRecueil_Table_PROFILETOBJECTIFSDINVESTISSEMENTS_2_BottomSection(float x, float y, float width, List<String> values) { Table table = new Table(x, y, width, 515); Color colorBlue = this.tableColor; table.CellDefault.Align = TextAlign.Center; table.Border.Width = 0.3f; table.CellDefault.Border.Width = 0.3f; table.CellDefault.Border.Color = this.tableColor; table.Border.Color = this.tableColor; table.Columns.Add(20); table.Columns.Add(30); table.Columns.Add(30); table.Columns.Add(85); table.Columns.Add(30); table.Columns.Add(85); table.Columns.Add(30); table.Columns.Add(80); table.Columns.Add(30); table.Columns.Add(80); var font = this.Heveltica; //var path_noCheck = AssemblyDirectory + "\\FoxitPDF\\images\\no-check.gif"; //var path_Check = AssemblyDirectory + "\\FoxitPDF\\images\\check.gif"; var path_noCheck = AssemblyDirectory + "\\FoxitPDF\\images\\check-off.png"; var path_Check = AssemblyDirectory + "\\FoxitPDF\\images\\check-on.png"; //var noCheck = new Foxit.PDF.PageElements.Image(new Foxit.PDF.Imaging.GifImageData(path_noCheck), 0, 0); //var check = new Foxit.PDF.PageElements.Image(new Foxit.PDF.Imaging.GifImageData(path_Check), 0, 0); var noCheck = new Foxit.PDF.PageElements.Image(new Foxit.PDF.Imaging.PngImageData(path_noCheck), 0, 0); noCheck.SetSize(9,9); var check = new Foxit.PDF.PageElements.Image(new Foxit.PDF.Imaging.PngImageData(path_Check), 0, 0); check.SetSize(9, 9); #region Bottom Section #region Bottom Section - Oui - Left side Row row = table.Rows.Add(15, font, 9, RgbColor.Black, RgbColor.White); row.CellDefault.VAlign = VAlign.Center; Cell cell = null; if (values[0] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.RowSpan = 17; cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell = row.Cells.Add(values[1]); cell.RowSpan = 17; cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; #endregion #region Row 1 - Blue - Column header row = table.Rows.Add(15, font, 9, RgbColor.White, colorBlue); cell = row.Cells.Add(values[2]); cell.Border.Color = colorBlue; cell.ColumnSpan = 8; cell.Align = TextAlign.Center; #endregion #region Row 2 - White - Multiple columns row = table.Rows.Add(15, font, 9, RgbColor.Black, RgbColor.White); #region first column if (values[3] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[4]); cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = colorBlue; #endregion #region second column if (values[5] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[6]); cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = colorBlue; #endregion #region third column if (values[7] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[8]); cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = colorBlue; #endregion #region fourth column if (values[9] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[10]); cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = colorBlue; #endregion #endregion #region Row 3 - White row = table.Rows.Add(25, font, 9, RgbColor.Black, RgbColor.White); cell = row.Cells.Add(values[11]); cell.ColumnSpan = 8; #endregion #region Row 4 - Blue - Column header row = table.Rows.Add(15, font, 9, RgbColor.White, colorBlue); cell = row.Cells.Add(values[12]); cell.Border.Color = colorBlue; cell.ColumnSpan = 8; cell.Align = TextAlign.Center; #endregion #region Row 5 - White - 3 Column row = table.Rows.Add(25, font, 9, RgbColor.Black, RgbColor.White); row.CellDefault.Align = TextAlign.Center; #region first column if (values[13] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[14]); cell.ColumnSpan = 2; cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = RgbColor.Black; #endregion #region second column if (values[15] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[16]); cell.ColumnSpan = 2; cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = RgbColor.Black; #endregion #region third column if (values[17] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[18]); cell.ColumnSpan = 2; cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = RgbColor.Black; #endregion #endregion #region Row 6 - White row = table.Rows.Add(25, font, 9, RgbColor.Black, RgbColor.White); cell = row.Cells.Add(values[19]); cell.ColumnSpan = 8; #endregion #region Row 7 - Blue - Column header row = table.Rows.Add(15, font, 9, RgbColor.White, colorBlue); cell = row.Cells.Add(values[20]); cell.Border.Color = colorBlue; cell.ColumnSpan = 8; cell.Align = TextAlign.Center; #endregion #region Row 8 - White - 3 Column row = table.Rows.Add(25, font, 9, RgbColor.Black, RgbColor.White); row.CellDefault.Align = TextAlign.Center; #region first column if (values[21] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[22]); cell.ColumnSpan = 2; cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = RgbColor.Black; #endregion #region second column if (values[23] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[24]); cell.ColumnSpan = 2; cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = RgbColor.Black; #endregion #region third column if (values[25] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[26]); cell.ColumnSpan = 2; cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = RgbColor.Black; #endregion #endregion #region Row 9 - Blue - Column header row = table.Rows.Add(15, font, 9, RgbColor.White, colorBlue); cell = row.Cells.Add(values[27]); cell.Border.Color = colorBlue; cell.ColumnSpan = 8; cell.Align = TextAlign.Center; #endregion #region Row 10 - White - 3 Column row = table.Rows.Add(25, font, 9, RgbColor.Black, RgbColor.White); row.CellDefault.Align = TextAlign.Center; #region first column if (values[28] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[29]); cell.ColumnSpan = 2; cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = RgbColor.Black; #endregion #region second column if (values[30] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[31]); cell.ColumnSpan = 2; cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = RgbColor.Black; #endregion #region third column if (values[32] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[33]); cell.ColumnSpan = 2; cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = RgbColor.Black; #endregion #endregion #region Row 11 - Blue - Column header row = table.Rows.Add(15, font, 9, RgbColor.White, colorBlue); cell = row.Cells.Add(values[34]); cell.Border.Color = colorBlue; cell.ColumnSpan = 8; cell.Align = TextAlign.Center; #endregion #region Row 12 - White - Multiple columns row = table.Rows.Add(15, font, 9, RgbColor.Black, RgbColor.White); #region first column if (values[35] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[36]); cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = RgbColor.Black; #endregion #region second column if (values[37] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[38]); cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = RgbColor.Black; #endregion #region third column if (values[39] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[40]); cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = RgbColor.Black; #endregion #region fourth column if (values[41] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[42]); cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = RgbColor.Black; #endregion #endregion #region Row 13 - Blue - Column header row = table.Rows.Add(15, font, 9, RgbColor.White, colorBlue); cell = row.Cells.Add(values[52]); cell.Border.Color = colorBlue; cell.ColumnSpan = 8; cell.Align = TextAlign.Center; #endregion #region Row 14 - White - 3 columns row = table.Rows.Add(20, font, 9, RgbColor.Black, RgbColor.White); row.CellDefault.Align = TextAlign.Center; row.CellDefault.VAlign = VAlign.Center; #region first column if (values[53] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[54]); cell.ColumnSpan = 2; cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = RgbColor.Black; #endregion #region second column if (values[55] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[56]); cell.ColumnSpan = 2; cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = RgbColor.Black; #endregion #region third column if (values[57] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[58]); cell.ColumnSpan = 2; cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = RgbColor.Black; #endregion #endregion #region Row 15 - Blue - Column header row = table.Rows.Add(15, font, 9, RgbColor.White, colorBlue); cell = row.Cells.Add(values[43]); cell.Border.Color = colorBlue; cell.ColumnSpan = 8; cell.Align = TextAlign.Center; #endregion #region Row 16 - White - Multiple columns row = table.Rows.Add(15, font, 9, RgbColor.Black, RgbColor.White); #region first column if (values[44] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[45]); cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = RgbColor.Black; #endregion #region second column if (values[46] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[47]); cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = RgbColor.Black; #endregion #region third column if (values[48] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[49]); cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = RgbColor.Black; #endregion #region fourth column if (values[50] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[51]); cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = RgbColor.Black; #endregion #endregion #endregion this._currentPage.Elements.Add(table); table = null; row = null; cell = null; path_noCheck = null; path_Check = null; check = null; noCheck = null; values = null; }
public float AddRecueil_Table_PROFILETOBJECTIFSDINVESTISSEMENTS_Body(float x, float y, float width, String columnName, List<List<String>> list) { Table table = new Table(x, y, width, 530); // CmykColor colorBlue = new CmykColor(0.75f, 0.42f, 0f, 0.51f); table.CellDefault.Align = TextAlign.Center; table.Border.Width = 0.3f; table.CellDefault.Border.Width = 0.3f; table.CellDefault.Border.Color = this.tableColor; table.Border.Color = this.tableColor; table.RepeatColumnHeaderCount = 1; table.RepeatRowHeaderCount = 1; table.Columns.Add(50); width -= 50; for (int counter = 1; counter <= 11; counter++) table.Columns.Add(width / 11); Row row = table.Rows.Add(15, this.Roboto, this.defaultFontSize, RgbColor.Black, RgbColor.White); row.CellDefault.VAlign = VAlign.Center; row.Cells.Add(columnName).ColumnSpan = 12; //var path_noCheck = AssemblyDirectory + "\\FoxitPDF\\images\\no-check.gif"; //var path_Check = AssemblyDirectory + "\\FoxitPDF\\images\\check.gif"; var path_noCheck = AssemblyDirectory + "\\FoxitPDF\\images\\check-off.png"; var path_Check = AssemblyDirectory + "\\FoxitPDF\\images\\check-on.png"; //var noCheck = new Foxit.PDF.PageElements.Image(new Foxit.PDF.Imaging.GifImageData(path_noCheck), 0, 0); //var check = new Foxit.PDF.PageElements.Image(new Foxit.PDF.Imaging.GifImageData(path_Check), 0, 0); var noCheck = new Foxit.PDF.PageElements.Image(new Foxit.PDF.Imaging.PngImageData(path_noCheck), 0, 0); noCheck.SetSize(9, 9); var check = new Foxit.PDF.PageElements.Image(new Foxit.PDF.Imaging.PngImageData(path_Check), 0, 0); check.SetSize(9, 9); foreach (var valueList in list) { row = table.Rows.Add(15, this.Roboto, this.defaultFontSize, RgbColor.Black, RgbColor.White); foreach (var value in valueList) { if (value == Boolean.TrueString) row.Cells.Add(check); else if (value == Boolean.FalseString) row.Cells.Add(noCheck); else row.Cells.Add(value); } row.Cells[0].BackgroundColor = this.tableColor; row.Cells[0].TextColor = RgbColor.White; } this._currentPage.Elements.Add(table); return y + table.Height; }
public void AddRecueil_Table_PROFILETOBJECTIFSDINVESTISSEMENTS_2_TopSection(float x, float y, float width, List<String> values) { Table table = new Table(x, y, width, 500); Color colorBlue = this.tableColor; table.CellDefault.Align = TextAlign.Center; table.Border.Width = 0.3f; table.CellDefault.Border.Width = 0.3f; table.CellDefault.Border.Color = this.tableColor; table.Border.Color = this.tableColor; table.RepeatColumnHeaderCount = 1; table.RepeatRowHeaderCount = 1; table.Columns.Add(20); table.Columns.Add(30); table.Columns.Add(30); table.Columns.Add(85); table.Columns.Add(30); table.Columns.Add(85); table.Columns.Add(30); table.Columns.Add(80); table.Columns.Add(30); table.Columns.Add(80); var font = this.Roboto; //var path_noCheck = AssemblyDirectory + "\\FoxitPDF\\images\\no-check.gif"; //var path_Check = AssemblyDirectory + "\\FoxitPDF\\images\\check.gif"; var path_noCheck = AssemblyDirectory + "\\FoxitPDF\\images\\check-off.png"; var path_Check = AssemblyDirectory + "\\FoxitPDF\\images\\check-on.png"; //var noCheck = new Foxit.PDF.PageElements.Image(new Foxit.PDF.Imaging.GifImageData(path_noCheck), 0, 0); //var check = new Foxit.PDF.PageElements.Image(new Foxit.PDF.Imaging.GifImageData(path_Check), 0, 0); var noCheck = new Foxit.PDF.PageElements.Image(new Foxit.PDF.Imaging.PngImageData(path_noCheck), 0, 0); noCheck.SetSize(9, 9); var check = new Foxit.PDF.PageElements.Image(new Foxit.PDF.Imaging.PngImageData(path_Check), 0, 0); check.SetSize(9, 9); #region Top Section Row row = table.Rows.Add(15, font, 9, RgbColor.Black, RgbColor.White); row.CellDefault.VAlign = VAlign.Center; #region Top section - NON - Left side Cell cell = null; if (values[0] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.RowSpan = 10; cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell = row.Cells.Add(values[1]); cell.RowSpan = 10; cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; #endregion #region Row 1 - Column header cell = row.Cells.Add(values[2]); cell.ColumnSpan = 8; #endregion #region Row 2 - Blue - Oui row = table.Rows.Add(15, font, 9, RgbColor.White, colorBlue); if (values[3] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Border.Color = colorBlue; cell.ColumnSpan = 4; cell.Align = TextAlign.Right; cell = row.Cells.Add(values[4]); cell.Border.Color = colorBlue; cell.ColumnSpan = 4; cell.Align = TextAlign.Left; #endregion #region Row 3 - White row = table.Rows.Add(15, font, 9, RgbColor.Black, RgbColor.White); cell = row.Cells.Add(values[5]); cell.ColumnSpan = 8; #endregion #region Row 4 - White - Multiple columns row = table.Rows.Add(15, font, 9, RgbColor.Black, RgbColor.White); #region first column if (values[6] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[7]); cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = colorBlue; #endregion #region second column if (values[8] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[9]); cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = colorBlue; #endregion #region third column if (values[10] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[11]); cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = colorBlue; #endregion #region fourth column if (values[12] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[13]); cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = colorBlue; #endregion #endregion //------------ #region Row 5 - White row = table.Rows.Add(15, font, 9, RgbColor.Black, RgbColor.White); cell = row.Cells.Add(values[26]); cell.Border.Color = colorBlue; cell.ColumnSpan = 8; cell.Align = TextAlign.Center; #endregion #region Row 6 - White - 3 columns row = table.Rows.Add(25, font, 9, RgbColor.Black, RgbColor.White); row.CellDefault.Align = TextAlign.Center; #region first column if (values[27] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[28]); cell.ColumnSpan = 2; cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = colorBlue; #endregion #region second column if (values[29] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[30]); cell.ColumnSpan = 2; cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = colorBlue; #endregion #region third column if (values[31] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[32]); cell.ColumnSpan = 2; cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = colorBlue; #endregion #endregion //------------ #region Row 7 - White row = table.Rows.Add(15, font, 9, RgbColor.Black, RgbColor.White); cell = row.Cells.Add(values[14]); cell.ColumnSpan = 8; #endregion #region Row 8 - White - Multiple columns row = table.Rows.Add(15, font, 9, RgbColor.Black, RgbColor.White); #region first column if (values[15] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[16]); cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = colorBlue; #endregion #region second column if (values[17] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[18]); cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = colorBlue; #endregion #region third column if (values[19] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[20]); cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = colorBlue; #endregion #region fourth column if (values[21] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Align = TextAlign.Right; cell.Border.Color = RgbColor.White; cell.Border.Left.Color = colorBlue; cell = row.Cells.Add(values[22]); cell.Align = TextAlign.Left; cell.Border.Color = RgbColor.White; cell.Border.Right.Color = colorBlue; #endregion #endregion #region Row 9 - Blue - Non row = table.Rows.Add(15, font, 9, RgbColor.White, colorBlue); if (values[23] == Boolean.TrueString) cell = row.Cells.Add(check); else cell = row.Cells.Add(noCheck); cell.Border.Color = colorBlue; cell.ColumnSpan = 4; cell.Align = TextAlign.Right; cell = row.Cells.Add(values[24]); cell.Border.Color = colorBlue; cell.ColumnSpan = 4; cell.Align = TextAlign.Left; #endregion #region Row 10 - White row = table.Rows.Add(40, font, 9, RgbColor.Black, RgbColor.White); cell = row.Cells.Add(values[25]); cell.ColumnSpan = 8; #endregion #endregion this._currentPage.Elements.Add(table); table = null; row = null; cell = null; path_noCheck = null; path_Check = null; check = null; noCheck = null; values = null; }
public void AddReceuil_UnSelected_Checkbox(float y, float x = 0) { var checkbox = new Foxit.PDF.PageElements.Image(CheckOffPath, x, y); checkbox.SetSize(9, 9); _currentPage.Elements.Add(checkbox); }