Jump to content
JasperReports Library 7.0 is now available ×

Arabic Text in RTF file


waqasahmedch

Recommended Posts

Hi there, i have simple arabic text when i tried to display this with RTF file format it is showing Arabic in Reverse Order. Like الرياض is displayed as ضايرلا

in simple words "Apple" Displays "elppA" its a problem. i m embedding JRXML file code.

 

<columnHeader>

<band height="550">

<staticText>

<reportElement x="350" y="0" width="200" height="50" />

<textElement textAlignment="Right">

<font fontName="Arial" size="22" pdfFontName="ARIAL.TTF" pdfEncoding="Identity-H" isPdfEmbedded="true"/>

</textElement>

<text><![CDATA[صاحب السمولالملكي]]></text>

</staticText>

</band>

</columnHeader>

 

Working with PDF is OK. BUT not working with RTF FILE format. did not checked with Others.

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Yes i tried the same example in my application it is same for RTF. One more thing,,, The arabic Numbers should be printed as Arabic not latin. for example...

العدد 7 downward arrow is actually 7 in arabic, i m facing this problem while printing PDF report, although Numbers in JRXML file are in correct Arabic format, but when it come to generate PDF it change them to Latin Characters/Numbers.

Link to comment
Share on other sites

Hi,

 

I don't think I understand what the problem is with numbers. If you have numbers in the Arabic text, it should show as numbers.

Anyway, our tests indicate that the same RTF file looks OK on some machines and not good on others. So it might be related to the RTF viewer application that you are using.

 

You should try attach some screen shots describing the problem you have.

 

I hope this helps.

Teodor

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...