[CLOSED] To remove gap from the top and bottom of the subhead data set.
I need to remove gap from the top and bottom of the subhead data set in PDF Report(WEB Focus 7.6.9). (e.g just for reference)
TABLE FILE CAR
BY CTR NOPRINT
ON CTR SUBHEAD
"<NAME<+0>MODEL"
"<SIZE<+0>"
"_____________"
END
Gap appears after every Data set at the top and bottom.(By CTR)This message has been edited. Last edited by: Kerry,
WebFOCUS 7.6.10 Windows Output: Excel,PDF
December 31, 2009, 10:21 AM
Dan Satchell
One solution is to use TOPGAP or BOTTOMGAP settings in a StyleSheet and experiment with negative values for gap to achieve the desired vertical spacing:
TABLE FILE CAR
BY COUNTRY NOPRINT
BY CAR NOPRINT
ON CAR SUBHEAD
"<COUNTRY <CAR"
" "
"<MODEL"
"_____________"
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=SUBHEAD, BOTTOMGAP=-.1, $
ENDSTYLE
END
WebFOCUS 7.7.05
January 03, 2010, 04:27 PM
Waz
Be careful of negative gaps with things like Grids or background colours. I have seen it do weird things.
Waz...
Prod:
WebFOCUS 7.6.10/8.1.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!
January 05, 2010, 03:39 AM
subbu
using negative value does not work it reduces space between first and second line of data but i need to reduce space below and above one set of date not every data line, just below and after "____________".
WebFOCUS 7.6.10 Windows Output: Excel,PDF
January 08, 2010, 02:51 PM
Kerry
Hi Subbu,
The following code may be of help:
TABLE FILE CAR
-*"_____________"
PRINT
'CAR.COMP.CAR'
BY 'CAR.COMP.CAR' NOPRINT
ON CAR.COMP.CAR SUBHEAD
"<CAR MODEL"
"<BODY"
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='TIMES NEW ROMAN',
SIZE=10,
$
TYPE=SUBHEAD,
BY=1,
LINE=2,
OBJECT=FIELD,
ITEM=1,
STYLE=UNDERLINE,
$
ENDSTYLE
END
The output would look like this: PAGE 1 CAR ALFA ROMEO MODEL SEDAN ALFA ROMEO ALFA ROMEO ALFA ROMEO AUDI MODEL SEDAN AUDI BMW MODEL SEDAN BMW BMW BMW BMW
Cheers,
Kerry
Kerry Zhan Focal Point Moderator Information Builders, Inc.
January 08, 2010, 03:48 PM
Doug
So, basically: don't use HEADING / FOOTING, use SUBHEAD / SUBFOOT on predefined sortable fields.