This is a migrated thread and some comments may be shown as answers.

Report showing negative sign on right side and percentage sign on left side.

4 Answers 196 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mohsin
Top achievements
Rank 1
Mohsin asked on 01 Dec 2011, 11:43 AM
Hi Telerik Team,

I have a problem in my report. Report have textboxes in which negative and positive values needs to be displayed. But when data display the negative value sign displays on right side and percentage sign displays on left side. I have used expression for displaying percentage sign. The data is coming from database.
Note: Reporting build is Q2-2011
Please see the attached screen shot for further clarification.

Urgent response is appreciated.

Thanks,
Mohsin

4 Answers, 1 is accepted

Sort by
0
Elian
Telerik team
answered on 02 Dec 2011, 04:55 PM
Hello Mohsin,

From the screenshot you provided we cannot tell what the problem is. We have the following questions:
  1. What expression do you use to display the data?
  2. In what format do you retrieve the data from the database?
  3. What culture is set for the report and the textboxes (respectively the culture of the application)?
All the best,
Elian
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

0
Mohsin
Top achievements
Rank 1
answered on 03 Dec 2011, 10:37 AM
Hi Elian,

1. = IIf(Fields.Apr= Null," ", CStr(Fields.Apr) + "%")  -  this expression is used in every text box for displaying formatted data. I tried removing expression but the result was same as negative sign appearing on right side instead of left side.
2. I am retrieving decimal data from database. I tried converting them in varchar but not fruitful.
3. Default culture setting is set for report and text boxes.

Thanks,
Mohsin
 
0
Accepted
Elian
Telerik team
answered on 05 Dec 2011, 05:14 PM
Hello Mohsin,

If the report is with "default" culture it will use your current culture. Probably yours is right-to-left and that's why the textbox is behaving this way (minus sign on the right and % on the left). It actually flips the expression in the report designer as well.
Try to set some left-aligned culture to the report or to the TextBoxes respectively (for example "en") and see if it works.
If it doesn't solve your problem please send us a runnable sample that we can further examine.

Greetings,
Elian
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

0
Mohsin
Top achievements
Rank 1
answered on 08 Dec 2011, 01:33 PM
Hi Elian,

Your tips really help me out and solves my problem.
Thanks for your support.

Regards,
Mohsin
Tags
General Discussions
Asked by
Mohsin
Top achievements
Rank 1
Answers by
Elian
Telerik team
Mohsin
Top achievements
Rank 1
Share this question
or