Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Justify Text Output - How?

Status
Not open for further replies.

MikeCopeland

Programmer
May 21, 2007
91
US
Using CR XI...
I have a formula that converts scalar data to textual description - but the text contains leading blanks. When the output is displayed, the blanks are "compressed" and the output doesn't line up as I'd like. Here is what I'm doing:
select{FCCommMain.SalaryRange}
case 9: " 0 - 5,000"
case 10: " 5,001 - 12,650"
case 11: "12,651 - 18,000"
case 12: "18,001 - 25,000"
case 13: "25,001 - 35,000"
case 14: "35,001 - 45,000"
case 15: "45,001+ "
default: "???????????????"
(All text strings are the same length, although this message doesn't show this...)
All I want to do is align the text output to the right and/or right-justify it. I can't seem to find any way to accomplish this. Please advise. TIA
 
If you use a non-proportional font like Courier New they will align correctly.

-LB
 
Yes, I see - thank you. Is there any way to do that globally - for the entire report? (I couldn't find one...)
Also, is there no other way, such as alignment/justification? TIA
 
You should be able to "lasso" all items in the report->right click->format objects and then change the font globally. If you can't do that because of drawing objects or something, you can at least use the "select all section objects" which is on the right click menu when your cursor is on the gray area to the left of the report.

If you are using spaces (as you are), I think the font is the only real solution (although I might be wrong).

-LB



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top