Hi again,

Today I tried to create  a richTextRun  object using the three-parametered
constructor -> RichTextRun(TextRun, int, int). My expression was like that:

RichTextRun rtr = new RichTextRun(textRun, textRun.getText().getLength(),
text.length);

textRun is my TextRun object which is the container of richtextruns. I had
created it before.

second parameter is the start point of new richtextrun. (I want it at the
ent of textRun) 

last parameter is length of my text.

I created the object without problem. But when i tried to set the text ( ->
rtr.setText(text) ) an exception was thrown:

java.lang.IllegalArgumentException: Supplied RichTextRun wasn't from this
textrun.

Can anybody tell me, where my fault was?

-- 
View this message in context: 
http://www.nabble.com/Yet-another-error-with-richTextRun-tp24220165p24220165.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