columns列:Rows 工作表上所有的行

来源:互联网 发布:数显游标卡尺数据采集 编辑:程序博客网 时间:2024/05/08 05:00
columns  

“模型”(Model) 在缺省情况下不显示。单击“”(columns)>“模型”(Model) 以显示“模型”(Model) 。...


专栏

columns 专栏...118 谷约评点:翻译擂台(文/谷约)


第一列

Rows 工作表上所有的行...columns(1) 第一列...columns("A") 第一列


工作表上所有的列

columns("A") 第一列...columns 工作表上所有的列

与 columns 相关的例句
 

  1. A court enclosed by columns
    周柱中庭由柱子围绕的厅堂
  2. Constructed with or having columns
    圆柱的圆柱的或由圆柱构成的
  3. having columns on all sides. 
    在所有的边上都有圆柱。
  4. Not having columns or pilasters. 
    无柱式的无支柱或壁柱的
  5. These columns sustain the arches. 
    这些圆柱支撑着拱门。
  6. The troops formed into columns
    战士排成了纵队。
  7. a row of evenly spaced columns
    通常为距离相等的一列柱子。
  8. cut a furrow into a columns
    在圆柱体里开一道沟。
  9. (architecture) lacking columns or pillars. 
    (建筑学)缺少圆柱或者柱子。
  10. Afford me the hospitality of your columns
    请贵刊惠予采用。

 

--------------------

import java.io.*;
import jxl.*;

public class ReadXLS {
    public static void main(String args[]) {
        try {
            Workbook book = Workbook.getWorkbook(new File("D:/3.xls"));
            // 获得第一个工作表对象
            Sheet sheet = book.getSheet(0);
            // 得到第一列的单元格
            for (int i=0,j=0;i<sheet.getColumns();i++) {
                Cell cell1 = sheet.getCell(i, 0);
                String result = cell1.getContents();
                System.out.println(result);
            }
            book.close();
        } catch (Exception e) {
            System.out.println(e);
        }
    }
}

java读取Excel一行的内容。

——————————————————————————

jxl.jar的下载地址和说明书

http://download.csdn.net/source/534250

http://www.ibm.com/developerworks/cn/java/l-javaExcel/index.html

http://baike.baidu.com/view/1327707.html

http://yuanyuan7891.javaeye.com/blog/656388

原创粉丝点击