lena5il Posted July 19, 2006 Share Posted July 19, 2006 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"«»); parameters.put(JRParameter.REPORT_LOCALE, locale); jasperPrint = JasperFillManager.fillReport(jasperReport,parameters,dataSource); But this didn't affect the output of the report. Maby there are some special actions that I should do in the jrxml file in addition to the mantioned code in the datasouce? Does anyone have an idea, how to solve this problem? Lena Link to comment Share on other sites More sharing options...
Teodor Danciu Posted July 19, 2006 Share Posted July 19, 2006 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 Link to comment Share on other sites More sharing options...
lena5il Posted July 20, 2006 Author Share Posted July 20, 2006 Thank you for reply. I am exporting my report to rtf format. I saw the sample code, but that didn't helped me. :( Link to comment Share on other sites More sharing options...
Teodor Danciu Posted July 20, 2006 Share Posted July 20, 2006 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_id=36382&atid=416703 Thank you,Teodor Link to comment Share on other sites More sharing options...
lena5il Posted July 23, 2006 Author Share Posted July 23, 2006 Hi,It works in pdf format. Thanks.:PPost edited by: lena5il, at: 2006/07/23 12:39 Link to comment Share on other sites More sharing options...
Teodor Danciu Posted July 25, 2006 Share Posted July 25, 2006 Hi, Can you provide us with a Unicode sequence so that we could reproduce the problem and try to fix it? Thank you,Teodor Link to comment Share on other sites More sharing options...
lena5il Posted August 1, 2006 Author Share Posted August 1, 2006 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 :) Link to comment Share on other sites More sharing options...
Teodor Danciu Posted August 1, 2006 Share Posted August 1, 2006 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 Link to comment Share on other sites More sharing options...
lena5il Posted August 2, 2006 Author Share Posted August 2, 2006 Hi,Do you want me to attach the rtf files I get? Lena Link to comment Share on other sites More sharing options...
firass88 Posted March 20, 2007 Share Posted March 20, 2007 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. Link to comment Share on other sites More sharing options...
lena5il Posted March 20, 2007 Author Share Posted March 20, 2007 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. Link to comment Share on other sites More sharing options...
firass88 Posted March 20, 2007 Share Posted March 20, 2007 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 20audi 6gmc 5 i want the cars to be right to left in case of hebrew-arabic-farsiex.*********************************************20 bmw********************************************6 audi******************************************* 5 gmcright 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now