git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352791 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Glen Stampoultzis 2002-07-20 12:51:07 +00:00
parent 7303717d73
commit f7e29b5bac

View File

@ -64,6 +64,7 @@
actually stored as a date is to look at the formatting. There is a helper method
in HSSFDateUtil (since the 1.7.0-dev release) that checks for this.
Thanks to Jason Hoffman for providing the solution.
<source>
case HSSFCell.CELL_TYPE_NUMERIC:
@ -98,11 +99,15 @@
<p>
The problem in most versions of IE is that it does not use the mime type on
the HTTP response to determine the file type; rather it uses the file extension
on the request. Thus you might want to add a <strong>.xls</strong> to your request
string. For example <em>http://yourserver.com/myServelet.xls?param1=xx</em>. This is
on the request. Thus you might want to add a
<strong>.xls</strong> to your request
string. For example
<em>http://yourserver.com/myServelet.xls?param1=xx</em>. This is
easily accomplished through URL mapping in any servlet container. Sometimes
a request like <em>http://yourserver.com/myServelet?param1=xx&amp;dummy=file.xls</em> is also
a request like
<em>http://yourserver.com/myServelet?param1=xx&amp;dummy=file.xls</em> is also
known to work.
</p>
<p>
To guarantee opening the file properly in Excel from IE, write out your file to a
@ -120,7 +125,9 @@
<p>
None of this is particular to Excel. The same problem arises when you try to
generate any binary file dynamically to an IE client. For example, if you generate
pdf files using <link href="http://xml.apache.org/fop">FOP</link>, you will come across many of the same issues.
pdf files using
<link href="http://xml.apache.org/fop">FOP</link>, you will come across many of the same issues.
</p>
<!-- Thanks to Avik for the answer -->
</answer>
@ -130,13 +137,24 @@
I want to set a cell format (Data format of a cell) of a excel sheet as###,###,###.#### or ###,###,###.0000. Is it possible using POI ?
</question>
<answer>
<p>
HSSF does not yet support custom data formats, however, it should be a
reasonably easy facillity to add and we'll gladly accept contributions
in this area.
These are the built in formats that it does support:
<link href="http://jakarta.apache.org/poi/javadocs/javasrc/org/apache/poi/hssf/usermodel/HSSFDataFormat_java.html#HSSFDataFormat">http://jakarta.apache.org/poi/javadocs/javasrc/org/apache/poi/hssf/usermodel/HSSFDataFormat_java.html#HSSFDataFormat</a>
<link href="http://jakarta.apache.org/poi/javadocs/javasrc/org/apache/poi/hssf/usermodel/HSSFDataFormat_java.html#HSSFDataFormat">http://jakarta.apache.org/poi/javadocs/javasrc/org/apache/poi/hssf/usermodel/HSSFDataFormat_java.html#HSSFDataFormat</link>
</p>
</answer>
</faq>
<faq>
<question>
How do I add a border around a merged cell?
</question>
<answer>
Add blank cells around where the cells normally would have been and set the borders individually for each cell.
</answer>
</faq>
</faqs>