jxl的行高和列宽是什么单位?
setRowView
setColumnView跟excel里的行高列宽是个怎么转换关系,谢谢!

解决方案 »

  1.   

    这个你可以看一下你下载的jxl这个包里的源程序啊。
    还有不知道楼主为什么会问这个问题。有什么实际意义吗?
      

  2.   

    我试了,在excel设置成行高为10,在jxl读取的值为199
    设成20为402,设成100为1999,设成200为4002,
    不知道怎么个转换关系
      

  3.   

    /**
       * Sets the height of the specified row, as well as its collapse status
       *
       * @param row the row to be formatted
       * @param height the row height in 1/20ths of a  point
       * @exception RowsExceededException
       * @deprecated use the override which takes a CellView object
       */
      public void setRowView(int row, int height) throws RowsExceededException
      {
        CellView cv = new CellView();
        cv.setSize(height);
        cv.setHidden(false);
        setRowView(row, cv);
      }setRowView(row, 200) 在excel中的实际高度为10像素