PdfPTable tableGene = new PdfPTable(4);
int j = 0;
EtudiantVrsEtape etudiant;
while(j < lEtuImage.count()){
table.addCell(rempliTable(j));
j++;
}
document.add(table);
document.close();
} catch (DocumentException de) {
System.err.println(de.getMessage());
} catch (IOException ioe) {
System.err.println(ioe.getMessage());
}
document.close();
}
public PdfPTable rempliTable(int i){
PdfPTable tableEtudiant = new PdfPTable(1);
EtudiantVrsEtape etudiant;
etudiant = (EtudiantVrsEtape) lEtuImage.objectAtIndex(i);
tableEtudiant.addCell(etudiant.getLib_nom_pat_ind);
tableEtudiant.addCell(etudiant.getLib_pr1_ind);
return tableEtudiant;
}
Partager