poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Sanders <bsand...@risklabs.com>
Subject RE: Question: How to get ranged font styles from string cells?
Date Tue, 21 Jan 2003 17:22:18 GMT
Unfortunately, this data just isn't exposed in the usermodel.

> -----Original Message-----
> From: Andreas Schildbach [mailto:andreas.schildbach@4soft.de]
> Sent: Tuesday, January 21, 2003 10:08 AM
> To: poi-dev@jakarta.apache.org
> Subject: Question: How to get ranged font styles from string cells?
> Hello everybody,
> I asked this question in poi-user, but nobody seemed to know 
> an answer.
> Could you help, please?
> I need to read font styles (bold, superscript, subscript) 
> from HSSFCells.
>   HSSFFont font = 
> workbook.getFontAt(cell.getCellStyle().getFontIndex());
> returns the style that was set for the whole cell, but my 
> workbook also
> contains string cells that have certain styles applied only 
> on specific
> ranges of the cell's string value ("this text is in 
> <b>bold</b> and this is
> <i>italic</i>").

Confidential Information 

The information in this e-mail message (including any attachments) is
privileged and confidential information intended only for the use of the
individual or entity named above.  If the reader of this message is not the
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this communication is strictly prohibited.

View raw message