on 10-20-2014 12:37 PM
I have inherited support for an application that is written in VC# for VS2010 using Crystal Reports 10.5. The application has reports that must be printed in many languages including RTL languages such as Arabic. We have a string that is a concatenation of 2 fields, the second of which we surround with square brackets. When we display the string on a LTR report, the brackets retain their correct position. When we display the string in a RTL report, the field is scrambled a bit.
The TextFormat property for the field is set to crStandardText.
For Example:
The string to be displayed is "KULA YAG EMEK YEM K:1[XXX]
Here is a screen capture of both outputs:
The English output is correct but the Arabic transposes the opening character, in this case the opening square bracket. I've tried this with the following characters and the results are the same: { }, ( ), | |, < >. It appears as if these characters are actively affecting the output, like an escape sequence.
Interestingly enough, if I set the format to crHTMLText, it is formatted correctly as in the English/United States display shown above.
I have seen this problem mentioned on internet forums for a web application and it is fixed by a single function call but I found nothing on the non web usage.
I realize that the output string is being displayed in LTR regardless of the target language direction. I'm just trying to figure out why the brackets are being transposed and what I can do to fix it.
Thank you in advance for any light you can shed on this.
Hi Steve
CR 10.5 was not supported in VS 2010. Only SAP Crystal Reports, Developer Version for Visual Studio .NET (CRVS) can be used with VS 2010 and later.
Oh - before installing CRVS, uninstall CR 105(!). The two versions don't play nice on the same dev computer. Runtime is fine.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter
Message was edited by: Ludek Uher
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
NP
Only thing I can suggest for CR 10.5 is Service Pack 1:
There are no more SPs planned for CR 10.5 so if SP 1 does not help, your only option is VS 2010 and SAP Crystal Reports, Developer Version for Visual Studio .NET
- Ludek
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.