Re: 返: The CellType of a cell which is set to String

2016-08-19 Thread Javen O'Neal
sure what CellType it is. So I want to know the >>> > CellType at first, and then I can convert them to String. >>> > >>> > As you said, I can directly use DataFormatter to convert the cell value to >>> > a printed String. The printed String is what I

Re: 返: The CellType of a cell which is set to String

2016-08-19 Thread Javen O'Neal
ted String is what I want. Am I correct? >> > >> > > -元のメッセージ- >> > > 差出人: Javen O'Neal [mailto:javenon...@gmail.com] >> > > 送信日時: 2016年8月12日 23:35 >> > > 宛先: POI Users List >> > > 件名: Re: The CellType of a cell which

Re: 返: The CellType of a cell which is set to String

2016-08-19 Thread Young
rt them to String. > > > > As you said, I can directly use DataFormatter to convert the cell value to > > a printed String. The printed String is what I want. Am I correct? > > > > > -元のメッセージ- > > > 差出人: Javen O'Neal [mai

Re: 返: The CellType of a cell which is set to String

2016-08-18 Thread Javen O'Neal
rinted String is what I want. Am I correct? > > > -元のメッセージ- > > 差出人: Javen O'Neal [mailto:javenon...@gmail.com] > > 送信日時: 2016年8月12日 23:35 > > 宛先: POI Users List > > 件名: Re: The CellType of a cell which is set to String > > > > To see how Ex

返: The CellType of a cell which is set to String

2016-08-18 Thread 陈 杨阳
irectly use DataFormatter to convert the cell value to a printed String. The printed String is what I want. Am I correct? > -元のメッセージ- > 差出人: Javen O'Neal [mailto:javenon...@gmail.com] > 送信日時: 2016年8月12日 23:35 > 宛先: POI Users List > 件名: Re: The CellType of a cell which is set

Re: The CellType of a cell which is set to String

2016-08-12 Thread Javen O'Neal
To see how Excel actually saved the values, unzip the xlsx file and open sheet1.xml. You should see a couple elements, with a value and type. On Aug 12, 2016 8:32 AM, wrote: The cell data format is a distinct concept from the cell value. The format only defines how the value should be printed, b

Re: The CellType of a cell which is set to String

2016-08-12 Thread Javen O'Neal
The cell data format is a distinct concept from the cell value. The format only defines how the value should be printed, but doesn't change the underlying value. If you want to convert the cell value to a printed string, use https://poi.apache.org/apidocs/org/apache/poi/ss/usermodel/DataFormatter.

The CellType of a cell which is set to String

2016-08-12 Thread niaomingj...@outlook.com
Hi In a excel, Firstly, I typed '1' in A1, then I changed the format of this cell to String. Secondly, I changed the format of A2 to Standard(the default format), then I typed '1' in this cell. Finally, I saved this excel. This is my excel file for test. I’m using poi 3.14. My source is very s

The CellType of a cell which is set to String

2016-08-12 Thread Young
Hi In a excel, Firstly, I typed '1' in A1, then I changed the format of this cell to String. Secondly, I changed the format of A2 to Standard(the default format), then I typed '1' in this cell. Finally, I saved this excel. This is my excel file for test. I’m using poi 3.14. My source is very s