poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abhishek77 <ac4...@att.com>
Subject Re: more then one font colors in a cell....
Date Wed, 09 Apr 2008 23:19:30 GMT

Oh sorry, thanks 
it worked...



Mahesh Ganapathy wrote:
> 
> You can set a font to the HSSFRichTextString. Look at the applyFont()
> method
> in the HSSFRichTextString class.
> 
> On 4/9/08, Abhishek77 <ac421r@att.com> wrote:
>>
>>
>>
>> Thanks for the reply,
>> My understanding of it is that We set value on HSSFCell. Then we use
>> HSSFCellStyle to set the style of the cell and  HSSFCellStyle encapsulate
>> font setting for that perticular cell which includes setting color of the
>> font too and in the API i don't see anything that returns array or list
>> of
>> Fonts or style for a particular cell.
>> So it seems that it is not possible....As for HSSFRichTextString it
>> encapsulates text value but i don't understand how it is associating 2
>> different colors to a text, which as per my understanding happens through
>> HSSFFont....and if it is possible, It'll be nice of  you if u can post a
>> snippet for it.
>>
>>
>> Thanks again
>> Abhishek
>>
>>
>>
>>
>> Mahesh Ganapathy wrote:
>> >
>> > Cell values are rich text strings. Look at HSSFRichTextString class in
>> the
>> > javadocs
>> > Sent via BlackBerry by AT&T
>> >
>> > -----Original Message-----
>> > From: Abhishek77 <ac421r@att.com>
>> >
>> > Date: Wed, 9 Apr 2008 14:55:37
>> > To:user@poi.apache.org <To%3Auser@poi.apache.org>
>> > Subject: more then one font colors in a cell....
>> >
>> >
>> >
>> > Hi,
>> >
>> >  is it possible with POI APIs to have multiple font colors in a single
>> > cell.
>> > e.g i have to have "*First Name" as a cell value. "*" of which is in
>> red
>> > and
>> > rest in white. Is it possible to achieve this through POI
>> APIs?:confused:
>> >
>> > thanks in  Advance
>> > Abhishek
>> > --
>> > View this message in context:
>> >
>> http://www.nabble.com/more-then-one-font-colors-in-a-cell....-tp16597765p16597765.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
>> >
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
>> > For additional commands, e-mail: user-help@poi.apache.org
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/more-then-one-font-colors-in-a-cell....-tp16597765p16598478.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
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/more-then-one-font-colors-in-a-cell....-tp16597765p16598979.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


Mime
View raw message