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

Centering a data value in a column 1

Status
Not open for further replies.

LeonelSanchezJr

Programmer
Jan 26, 2001
522
US
I have a one character field which needs to be centered in the column of a pdf format report.

Can this be done?


Thanks,

Leo ;-)
 
Sure, just use styling, like this:
Code:
DEFINE FILE CAR
XXXXXX/A1='X';
END
TABLE FILE CAR
PRINT XXXXXX
BY COUNTRY 
ON TABLE SET STYLE *
TYPE = DATA, COLUMN=XXXXXX, JUSTIFY=CENTER,$
ENDSTYLE
ON TABLE PCHOLD FORMAT PDF
END
The 'JUSTIFY=CENTER' on the column does it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top