If - and that is IF - the rich text string does contain formatting runs for
the super and subscript parts then it ought to be possible to get at them.
All we need to do - that sounds so easy - is to get at the number of
formatting runs, so;

RichTextString rts = cell.getRichStringCellValue();
if(rts.numFormattingRuns() > 0) {
   
}

It should be possible within that loop to get at the font applied to a
formatting run - simply using the index and the getFontOfFormattingRun()
method - but I cannot yet see how to get at the actual string. Will keep
looking.

Yours

Mark B

PS Which stream are you targetting, HSSF/XSSF or both through the SS
usermodel classes?

--
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/Reading-superscript-from-data-cell-tp3414964p3422940.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