Thank for your help.
I finally manage to do what i wanted to.
I use "\013" to put a carriage return with a CharacterRun.
charRun.insertAfter("\013");
I had to do insertions in a second time after because insert while iterating
over the table isn't a good idea.
Thank for your help
-----Message d'origine-----
De : Sergey Vladimirov [mailto:[email protected]]
Envoyé : mercredi 10 octobre 2012 12:33
À : POI Users List
Objet : Re: new line in HWPF Cell
Mark,
AFAIK, decimal 11, i.e. 0x0A, i.e. \r is correct char
code for "Shift+Enter" (line break).
But it seems Cedric unable to get it work.
Sergey
On Wed, Oct 10, 2012 at 11:59 AM, Mark Beardsley
<[email protected]>wrote:
> The obvious answer is to create an additional
paragraph but this has
> all sorts of complications if the end user adjusts
the paragraph
> spacing for example. What I think you need to do is
to find the coding
> for the line break (shift and enter). It should be
possible to find
> out the correct pair of characters to insert into
the document to
> accomplish this. You could then simply include the
control characters
> into the run and that should be sufficient to
accomplish what you are
> after. It might be worthwhile starting with reading
a a Word document
> with HWPF and seeing what you get back for the
shift/enter pairing.
> Alternatively, create an OOXML word document and
unzip the xml to look
> at what is stored in the markup and see if that
gives you any clues.
> Aside from that, I guess GIYF.
>
> Mark B
>
>
>
> --
> View this message in context:
>
http://apache-poi.1045710.n5.nabble.com/new-line-in-HWPF-Cell-tp571109
> 3p5711112.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]
>
>
--
Sergey Vladimirov