JasperReports and Microsoft Word - justified text align

752 Views Asked by At

I have jrxml report, which gets exported into .docx format, I have static text resources (.properties) with "\n" or "<br>" signs in values, like so: enter image description here

In jasperreports 'preview' tab it looks ok:

enter image description here

But when .docx format is used...:

enter image description here

I figured out that when you paste pilcrow pilcrow/paragraph (by pressing enter key) in word itself,

justified alignment enter image description here works ok,

but with <br> or \n jasper inserts enter image description here new line (shift enter equivalent) and it breaks everything.

May be someone knows what could be done.

Thanks!

1

There are 1 best solutions below

0
On BEST ANSWER

Found the solution:

To brake row I use tab/newline (&#9;<br> via HTML or \t\n via Java),

Text before tab/newline is aligned to the left border, text after is still justified well along the page.

enter image description here