Boulet, je le suis et à priori je le reste... Car je viens de faire ce que tu m’as dit et il y a toujours une exception :
unreported exception java.io.IOException; must be caught or declared to be thrown
workbook = Workbook.getWorkbook(new File(date+".xls"));
Et c’est toujours autour de new File qu’il semble y avoir un problème.
J’ai fait :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 Public void gatArchive(String date) { Workbook workbook; try{ workbook = Workbook.getWorkbook(new File(date+".xls")); Sheet sheet = workbook.getSheet(0); Cell g5 = sheet.getCell(6,4); Cell g6 = sheet.getCell(6,5); . nc = (NumberCell) g10; archive[5]= (int)(nc.getValue()); workbook.close(); }catch(jxl.read.biff.BiffException biffE){ System.err.println("Boulet, tu sais pas ouvrir 1 WorkBook !!!"); biffE.printStackTrace(); System.exit(1);} } [\code] Bon si quelqu'un a une idée pour un boulet...
Partager