Hebrew words are in the wrong direction

Hello,

The report I want to create should contein a hebrew text.
But when I try to write it, the hebrew words appear in the wrong
direction (ltr instead of rtl).

In order to solve it, I set the local property:

Code:
Locale locale = new Locale("he","IL"«»);  <br />
parameters.put(JRParameter.REPORT_LOCALE, locale);  <br />
jasperPrint = JasperFillManager.fillReport(jasperReport,parameters,dataSource);  <br />
 </td></tr></tbody></table><br />
 <br />
 <br />
But this didn't affect the output of the report.  <br />
<br />
Maby there are some special actions that I should <br />
do in the jrxml file in addition to the mantioned code in the datasouce?<br />
<br />
 <br />
Does anyone have an idea, how to solve this problem?  <br />
 <br />
 <br />
Lena
lena5il's picture
216
Joined: Jul 18 2006 - 11:01pm
Last seen: 16 years 10 months ago

11 Answers:

Hi,

Are you experiencing these problems in a particular export format? Have you tried see the report output in the JRViewer (Swing viewer)?

You could take a look at our /demo/samples/unicode sample provided with the project source files, where there is a text displaying Hebrew.

I hope this helps.
Teodor
teodord's picture
47304
Joined: Jun 30 2006 - 9:00am
Last seen: 23 min 14 sec ago
Thank you for reply.

I am exporting my report to rtf format.

I saw the sample code, but that didn't helped me.

:(
lena5il's picture
216
Joined: Jul 18 2006 - 11:01pm
Last seen: 16 years 10 months ago
Hi,

Can you check if in PDF the Hebrew text displays correctly? Or even in JasperPrint format when viewed with our Swing JasperViewer?
If you have a particular Hebrew text chunck that presents this problem, could you embed it into the Unicode.JRXML file and attach it here so that we are able to reproduce it?

So far we are aware about a similar issue that we've been tracking here:
http://sourceforge.net/tracker/index.php?func=detail&aid=1380345&group_i...

Thank you,
Teodor
teodord's picture
47304
Joined: Jun 30 2006 - 9:00am
Last seen: 23 min 14 sec ago
Hi,
It works in pdf format.
Thanks.:P
Post edited by: lena5il, at: 2006/07/23 12:39
lena5il's picture
216
Joined: Jul 18 2006 - 11:01pm
Last seen: 16 years 10 months ago
Hi,

Can you provide us with a Unicode sequence so that we could reproduce the problem and try to fix it?

Thank you,
Teodor
teodord's picture
47304
Joined: Jun 30 2006 - 9:00am
Last seen: 23 min 14 sec ago
Hi,

Sorry, I didn't answer you, but I was away last week.

This problem appeared with any hebrew text,
like שלום לכולם. Even in very simple report, that contains a single static text box.

Another point, is that this report worked almost fine when it was created on Linux, but was printed wrong in Windows (the hebrew is installed on this computer).
In the Linux there was another problem - the Justified alignment didn't worked well with hebrew in rtf (in pdf its ok).

Hope I described the problem clearly,
Thanks,
Lena :)
lena5il's picture
216
Joined: Jul 18 2006 - 11:01pm
Last seen: 16 years 10 months ago
Hi,

It would be helpful if you could attach some files to this thread, indicating which is rendered correctly and which is not. Also, having the JRXML would help, because I'm not sure if there are not any issues with the way Hebrew is encrypted on this forums.

Thank you,
Teodor
teodord's picture
47304
Joined: Jun 30 2006 - 9:00am
Last seen: 23 min 14 sec ago
Hi,
Do you want me to attach the rtf files I get?

Lena
lena5il's picture
216
Joined: Jul 18 2006 - 11:01pm
Last seen: 16 years 10 months ago
hi,

is there a solution for right-to-left writing in iReport for hebrew because i am stuck with this problem.

i have some reports that support left to right direction and i need the same report to support the RTL direction depend on the language of the client.

thanks in advance.
firass88's picture
448
Joined: Mar 19 2007 - 5:40pm
Last seen: 16 years 2 months ago
HI,

I have had this problem when I tried to export my report to RTF format. I think there is some bug in the Jasperreports.
The solution was to export it to pdf format, and in pdf it works well.
lena5il's picture
216
Joined: Jul 18 2006 - 11:01pm
Last seen: 16 years 10 months ago

hi lena,

thank you for replying to me...

i am exporting to pdf also and i have no problem in writing hebrew... characters.

my problem is like this, if i have a report that shows cars in the stock for example:
ex.
(left to right, left side of the page)
bmw 20
audi 6
gmc 5

i want the cars to be right to left in case of hebrew-arabic-farsi
ex.
*********************************************20 bmw
********************************************6 audi
******************************************* 5 gmc
right side of the page
(* is blanks)
cars name will be in hebrew-arabic-farsi of - course.

i want the same report to support both ltr and RTL langauges.

i hope i could explained myself

thanks a lot.
firass88's picture
448
Joined: Mar 19 2007 - 5:40pm
Last seen: 16 years 2 months ago
Feedback
randomness