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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set fixed width

Status
Not open for further replies.

cyreports

Programmer
May 12, 2010
89
0
0
US
I am using crystal reports ver 9. I am using a fixed font of courier new font size 9. I need to do a fixed length report that contains fields of various character widths. Is it possible to set width sizes on my report to be exactly the number of characters I need.

For example, I need 'Employee Number' to be exactly 15 characters. Can I set the field width on the actual details section to be exactly 15 wide without having to manually adjust by sight?
 
You should be able to create formulas to pad fields that are less than 15 characters:

totext({table.employeenumber},0,"")+space(15-len(totext({table.employeenumber},0,"")))

You might need to format the fields to "tight horizontal".

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top