You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by teena21 <fr...@yahoo.com> on 2007/12/27 09:23:27 UTC

how to get the property of fonts in cell


i want to extract properties of data within cell by using HSSF 
when i use  font.getBoldweight(); it gives the boldness of all cell's data
in a workbook 
i want to read data properties of a particular cell 
-- 
View this message in context: http://www.nabble.com/how-to-get-the-property-of-fonts-in-cell-tp14510647p14510647.html
Sent from the POI - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Re: how to get the property of fonts in cell

Posted by Nick Burch <ni...@torchbox.com>.
On Sun, 30 Dec 2007, teena21 wrote:
> there is no method to get a font or record for a HSSFCell so how can i
> get the font for particular cell

(HSSFCell).getCellStyle().getFontIndex() IYF

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Re: how to get the property of fonts in cell

Posted by teena21 <fr...@yahoo.com>.


Nick Burch wrote:
> 
> On Thu, 27 Dec 2007, teena21 wrote:
>> i want to extract properties of data within cell by using HSSF when i
>> use font.getBoldweight(); it gives the boldness of all cell's data in a
>> workbook i want to read data properties of a particular cell
> 
> Get the font for a given cell (using the default if it doesn't have one
> explictly set), then call font.getBoldweight() on that?
> 
> Nick
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
> For additional commands, e-mail: user-help@poi.apache.org
> 
> 
> 



thanks
there is no method to get a font or record for a HSSFCell so how can i get
the font for particular cell
please reply me 


-- 
View this message in context: http://www.nabble.com/how-to-get-the-property-of-fonts-in-cell-tp14510647p14554557.html
Sent from the POI - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Re: how to get the property of fonts in cell

Posted by Nick Burch <ni...@torchbox.com>.
On Thu, 27 Dec 2007, teena21 wrote:
> i want to extract properties of data within cell by using HSSF when i
> use font.getBoldweight(); it gives the boldness of all cell's data in a
> workbook i want to read data properties of a particular cell

Get the font for a given cell (using the default if it doesn't have one
explictly set), then call font.getBoldweight() on that?

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org