BlogJava 聯系 聚合 管理  

          Blog Stats

          隨筆檔案(17)

          文章檔案(1)


          GaoWei

          try
          ??{
          ??Workbook book=Workbook.getWorkbook(new File("F:/gw_work/2006-8-31/all.xls"));
          ???? Sheet sheet=book.getSheet(2);
          ???? int rowcnt=sheet.getRows();
          ???? int columns=sheet.getColumns();
          ???? String data[]=new String[columns];
          ???? System.out.println(data.length);
          ???? for(int i=0;i<rowcnt;i++)
          ???? {
          ???? ?
          ???? ?for(int j=0;j<columns;j++)
          ???? ?{
          ???? ??Cell cell1=sheet.getCell(j,i);
          ????String result=cell1.getContents();
          ????data[j]=result;
          ????System.out.print(result+"\t");
          ???? ?}
          ???? ?System.out.println("in----------------------");
          ???? ?Mysql.upData(data);
          ???? ?System.out.println("out----------------------");
          ???? }
          ????
          ????
          ?} catch (BiffException e) {
          ??// TODO Auto-generated catch block
          ??e.printStackTrace();
          ?} catch (IOException e) {
          ??// TODO Auto-generated catch block
          ??e.printStackTrace();
          ?}
          posted on 2006-09-03 01:56 gggg874 閱讀(427) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 肥东县| 邵阳县| 信丰县| 沁阳市| 延津县| 潼关县| 安徽省| 南平市| 尼木县| 台中县| 多伦县| 福建省| 灵璧县| 平顺县| 深水埗区| 甘德县| 长岭县| 隆尧县| 娱乐| 上思县| 北碚区| 义乌市| 息烽县| 宁德市| 毕节市| 会昌县| 香港| 航空| 泰和县| 特克斯县| 蒙城县| 新津县| 香港 | 中牟县| 凤冈县| 厦门市| 平邑县| 浦县| 蓬溪县| 昔阳县| 嘉禾县|