Yes, but if I want to copy a 
>HSSFRichTextString
, like that :

cell_out.setCellValue(cell_in.getRichStringCellValue());

this code don't copy the character's position, if you have more than one
style in a cell;
It returns character=0 for each style in our 
>HSSFRichTextString
;

Can i get back an array which contains all the format_runs?

thanks.


"POI Users List" <[email protected]> écrit :
>Yes, you can put rich text in cells.
>
>Usage:
>
> HSSFRichTextString str = new HSSFRichTextString("Hello, World!");
> str.applyFont(0,7, font1);
> str.applyFont(8,13, font2);
> cell.setCellValue(str);
>
>
> Yegor
> 
>> Hello
>
>> I'd like to know if it's possible to put more than one style in a cell
>> with this POI ?
>
>> For exemple to put one red string after an other black string in a same
>> cell (or to apply a bold style to any word in sentence).
>
>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to