You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by Avik Sengupta <av...@itellix.com> on 2003/08/20 20:28:46 UTC

Re: question re cell type and value when data is 'missing'

I believe you can do that..  but dont take my word for it .. the quickest is to try it out on a small sheet, i would think. 

   -------Original Message-------
   &gt; From: Steve &lt;stephen@Basit.COM&gt;
   &gt; Subject: question re cell type and value when data is 'missing'
   &gt; Sent: 20 Aug 2003 22:55:08
   &gt;
   &gt;  The HSSF documentaton says:  &quot;Cells should have their cell type set to
   &gt;  either HSSFCell.CELL_TYPE_NUMERIC or HSSFCell.CELL_TYPE_STRING.  Cells must
   &gt;  also have a value set. Set the value by calling setCellValue with either a
   &gt;  String or double as a parameter.&quot;
   &gt;  However, I notice that there is CELL_TYPE_BLANK. Can this be used instead of
   &gt;  NUMERIC or STRING?
   &gt;  I have a worksheet where the cells are integers. However, in some cases the
   &gt;  data values are &quot;missing&quot; and
   &gt;  I don't want to put 0 in the cell. I want it to show up as &quot;blank&quot;.  I'm not
   &gt;  sure if I should make that cell BLANK
   &gt;  and not set its value, or make it STRING with value of &quot;&quot;.  Or, just NOT
   &gt;  CREATE the cell.
   &gt;  
   &gt;  Which alternatives are allowed?
   &gt;  Which is best?
   &gt;  
   &gt;  
   &gt;  
   &gt;  ---------------------------------------------------------------------
   &gt;  To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
   &gt;  For additional commands, e-mail: poi-dev-help@jakarta.apache.org
   -------Original Message-------