I did some detailed digging around last night and came across and interesting
snippet of information in the javadoc. The format for the first formatting
run will not be applied to the run itself but to the cell - at least that is
the very strong hint given by the javadoc. So we will always see one less
formatting run available from the rich text string object as we need to get
the first from the cell's formatting object.

Will put together sopme code that uses that assumption and see where it gets
us. Who know, with a bit of luck and a folowing wind, we may crack this
before too long.

Yours

Mark B

PS Then there is the question of how Excel would handle a cell with
something like 22 entered into ti, where the second two is superscripted to
indicate the value '2 squared'. Will it default to a numeric value or will
it assume it is a string unless the user tells it otherwise? If it is held
as a numeric value, how to get at the different parts? Still, that can wait,
at least for today as I have two good - I hope - games of Rugby to watch.

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