[Closed] Justify a column title on top of the tiitle box
I have one column title with two and one with three lines. To center the column title was no problem.
But now I try to bring the two line column header to the top (means the empty row shold appear at the bottom of the column header - not on top):
TABLE FILE CAR
PRINT
'CAR.ORIGIN.COUNTRY' AS 'First County line,Second Country line'
'CAR.COMP.CAR' AS 'First Car Line,Second Car Line,Third Car Line'
HEADING
""
FOOTING
""
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=10,
$
TYPE=TITLE,
COLUMN=N2,
JUSTIFY=CENTER,
$
TYPE=TITLE,
COLUMN=N1,
JUSTIFY=CENTER,
$
ENDSTYLE
END
Any idea?
Thank you in advance and have a nice weekendThis message has been edited. Last edited by: MichaelBalle,
WebFOCUS 7.6, 7.7 Windows, All Output formats
November 26, 2010, 02:18 PM
Dan Satchell
Two commas: 'First County line,Second Country line,,' will produce a blank line, but the column title under-line will be missing. Using the hard space HTML character will do the trick, but it requires a bunch of them to produce a long-enough under-line. A -REPEAT loop makes it easier to set the number of hard spaces to the right length.
-SET &BLANKLINE = '&|nbsp;';
-*
-REPEAT :ENDREPEAT1 35 TIMES
-SET &BLANKLINE = &BLANKLINE | '&|nbsp;';
-:ENDREPEAT1
-*
TABLE FILE CAR
PRINT
'CAR.ORIGIN.COUNTRY' AS 'First County line,Second Country line,&BLANKLINE'
'CAR.COMP.CAR' AS 'First Car Line,Second Car Line,Third Car Line'
HEADING
""
FOOTING
""
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN, SQUEEZE=ON, ORIENTATION=PORTRAIT, $
TYPE=REPORT, GRID=OFF, FONT='TIMES NEW ROMAN', SIZE=10, $
TYPE=TITLE, JUSTIFY=CENTER, $
ENDSTYLE
END
WebFOCUS 7.7.05
November 29, 2010, 02:16 AM
MichaelBalle
Works fine
Thank you very much for your support
Have a nice week
WebFOCUS 7.6, 7.7 Windows, All Output formats
July 20, 2011, 06:42 PM
Enigma006
Hi
Is there any better technique to do this in 7.7 and above? I am looking to have title in the middle both horizontally and vertically. Few of my field titles are 1 line, 2 lines and in 3 lines as well.
Thank youThis message has been edited. Last edited by: Enigma006,