Mark,
Sorry for the delayed response. The "WebFOCUS HTML and PDF Report Design - Part II" article explains the techniques used in the code below.
I was not able to find a way to CENTER an ACROSSVALUE over the columns it contains. Ironically, JUSTIFY=RIGHT caused the ACROSSVALUE to appear over the last column on the right as opposed to the default of being over the first column on the left. However, JUSTIFY=CENTER did not put the ACROSSVALUE over the center column. This makes sense because you could have only two columns and therefore technically there is no CENTER column.
In order to get text CENTERed over the columns, I created a HEADING with the ACROSSVALUEs in it and then, using the technique explained in the "Part II" article, I CENTERed the values over the columns.
TABLE FILE CAR
HEADING
"CAR/MODEL<+0>ENGLAND<+0>W GERMANY"
SUM SALES
ACROSS COUNTRY NOPRINT
ACROSS SEATS AS '' COLUMNS 2 AND 4 AND 5
BY CAR
BY MODEL
WHERE COUNTRY EQ 'ENGLAND' OR 'W GERMANY'
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=REPORT, ORIENTATION=LANDSCAPE,$
TYPE=REPORT, COLUMN=CAR, WRAP=1.00,$
TYPE=REPORT, COLUMN=MODEL, WRAP=1.00,$
TYPE=REPORT, ACROSSCOLUMN=SALES, WRAP=1.00, JUSTIFY=RIGHT,$
TYPE=ACROSSVALUE, ACROSS=SEATS, JUSTIFY=RIGHT,$
TYPE=HEADING, LINE=1, OBJECT=TEXT, ITEM=1, WIDTH=2.30, JUSTIFY=CENTER,$
TYPE=HEADING, LINE=1, OBJECT=TEXT, ITEM=2, WIDTH=3.60, JUSTIFY=CENTER,$
TYPE=HEADING, LINE=1, OBJECT=TEXT, ITEM=3, WIDTH=3.50, JUSTIFY=CENTER,$
ENDSTYLE
END
Thanks!
Mickey
| FOCUS/WebFOCUS 1990 - 2011 |