Normally, you would interrogate the cell style object for it's font
information. It's the font that will 'tell' you whether the text is
formatted as a subscript etc.

The problem you face here is that there are likely to be more than one piece
of formatting/font information combined into that single cell's contents.
The first step, I think, is to get the cells contents as a rich text string
rather than as a 'normal' string and then see if the two different 'parts'
are format appropriately. The first step to doing this would be to ask the
RichTextString how many formatting runs is contains; I would expect two, one
for the normal part of the cell's contents and one for the subscript. I
should have the time today to play around with some code and will post again
if I make any headway.

Yours

Mark B

--
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/Reading-superscript-from-data-cell-tp3414964p3422904.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to