1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| private static Table getTable_bati()
{
float police = 7F;
Table datatable = new Table(26);
float[] headerwidths = { 5F, 12F, 7.5F, 7.5F, 10F, 52.5F, 11.5F, 6F, 6F, 6F, 9.5F, 11.5F, 6F, 8F, 6F, 11.5F, 6F, 19.5F, 8F, 6F, 6F, 6F, 15F, 6F, 5F, 8F};
datatable.Widths = headerwidths;
datatable.Padding = 1;
datatable.Height = 10F;//ceci plante
datatable.AddCell(c("PROPRIETES BATIES", 26, 1, 8));
...
return datatable;
}
public static Cell c(String nom, int Colspan, int Rowspan, float t_police)
{
Cell cell = new Cell(new Phrase(nom, FontFactory.GetFont(FontFactory.TIMES_ROMAN, t_police)));
cell.HorizontalAlignment = Element.ALIGN_CENTER;
cell.VerticalAlignment = Element.ALIGN_CENTER;
cell.Leading = 6;
cell.Colspan = Colspan;
cell.Rowspan = Rowspan;
return cell;
} |
Partager