diff options
author | Glen Stampoultzis <glens@apache.org> | 2002-10-08 23:14:45 +0000 |
---|---|---|
committer | Glen Stampoultzis <glens@apache.org> | 2002-10-08 23:14:45 +0000 |
commit | de760da7144ef418e7fb7a72aae4b5e81b7acd5b (patch) | |
tree | deb4c409e8aba7100fa053312699817a8d121dc8 | |
parent | 444f2f3293ffaa9bbdfc67924155cb35c51b4bb0 (diff) | |
download | poi-de760da7144ef418e7fb7a72aae4b5e81b7acd5b.tar.gz poi-de760da7144ef418e7fb7a72aae4b5e81b7acd5b.zip |
FAQ added
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352884 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/documentation/xdocs/faq.xml | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/src/documentation/xdocs/faq.xml b/src/documentation/xdocs/faq.xml index a0ff83672c..bc5b39a930 100644 --- a/src/documentation/xdocs/faq.xml +++ b/src/documentation/xdocs/faq.xml @@ -67,20 +67,20 @@ <source> - case HSSFCell.CELL_TYPE_NUMERIC: - double d = cell.getNumericCellValue(); - // test if a date! - if (HSSFDateUtil.isCellDateFormatted(cell)) { - // format in form of M/D/YY - cal.setTime(HSSFDateUtil.getJavaDate(d)); - cellText = - (String.valueOf(cal.get(Calendar.YEAR))).substring(2); - cellText = cal.get(Calendar.MONTH)+1 + "/" + - cal.get(Calendar.DAY_OF_MONTH) + "/" + - cellText; - } + case HSSFCell.CELL_TYPE_NUMERIC: + double d = cell.getNumericCellValue(); + // test if a date! + if (HSSFDateUtil.isCellDateFormatted(cell)) { + // format in form of M/D/YY + cal.setTime(HSSFDateUtil.getJavaDate(d)); + cellText = + (String.valueOf(cal.get(Calendar.YEAR))).substring(2); + cellText = cal.get(Calendar.MONTH)+1 + "/" + + cal.get(Calendar.DAY_OF_MONTH) + "/" + + cellText; + } - </source> + </source> </answer> </faq> <faq> @@ -190,4 +190,13 @@ Make sure you make the call to setEncoding() before calling setCellValue(), otherwise what you pass in won't be interpreted properly. </answer> </faq> + <faq> + <question> + I'm having trouble creating a spreadsheet using POI using + websphere 3.5. + </question> + <answer> + Make sure you have fix pack 4 installed. + </answer> + </faq> </faqs> |