[CLOSED] Set up the space between heading and data in a FML report
Hi all,
I would to supress the blank line that appear between the heading and data in a FML report. For example, I have this report:
DEFINE FILE CAR
CAMPO/I1=DECODE COUNTRY('ENGLAND' 1 'ITALY' 2 'JAPAN' 3 'W GERMANY' 4);
END
TABLE FILE CAR
HEADING
"SOME DUMMY HEADING"
SUM SALES
FOR CAMPO
1 AS 'TOTAL INGLATERRA' LABEL R1 OVER
2 AS 'TOTAL ITALIA' LABEL R2 OVER
4 AS 'TOTAL ALEMANIA' LABEL R3 OVER
3 AS 'TOTAL JAPÓN' LABEL R4 OVER
RECAP TOTEUR/I9=R1+R2+R3; AS 'TOTAL EUROPA'
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE=endeflt,
$
TYPE=REPORT,BORDER=LIGHT,BORDER-STYLE=SOLID,BORDER-COLOR=RGB(66 70 73),$
TYPE=DATA,COLUMN=SALES,STYLE=BOLD,$
ENDSTYLE
END
As I've mentioned before, this makes that report displays a blank line between the heading and data, and I would like that the report don't show this blank line. I have done it with this:
DEFINE FILE CAR
CAMPO/I1=DECODE COUNTRY('ENGLAND' 1 'ITALY' 2 'JAPAN' 3 'W GERMANY' 4);
END
TABLE FILE CAR
SUM SALES AS ''
FOR CAMPO
"DUMMY HEADING" LABEL C1 OVER
"SALES" LABEL C2 OVER
1 AS 'TOTAL INGLATERRA' LABEL R1 OVER
2 AS 'TOTAL ITALIA' LABEL R2 OVER
4 AS 'TOTAL ALEMANIA' LABEL R3 OVER
3 AS 'TOTAL JAPÓN' LABEL R4 OVER
RECAP TOTEUR/I9=R1+R2+R3; AS 'TOTAL EUROPA'
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE=endeflt,
$
TYPE=REPORT,BORDER=LIGHT,BORDER-STYLE=SOLID,BORDER-COLOR=RGB(66 70 73),$
TYPE=REPORT,LABEL=C2,JUSTIFY=RIGHT,STYLE=BOLD,$
TYPE=DATA,COLUMN=SALES,STYLE=BOLD,$
ENDSTYLE
END
But I don't like how it looks, and I think perhaps there's other way to do this, without this extra code. I haven't found it in the WF manual and neither in this forum.
Any help is welcome, thank's.This message has been edited. Last edited by: ferran,
With a little bit of additional styling, your second set of code can be made to display as you wish:
DEFINE FILE CAR
CAMPO/I1=DECODE COUNTRY('ENGLAND' 1 'ITALY' 2 'JAPAN' 3 'W GERMANY' 4);
END
-*
TABLE FILE CAR
SUM SALES AS ''
FOR CAMPO
"SOME DUMMY HEADING" LABEL C1 OVER
"SALES" LABEL C2 OVER
1 AS 'TOTAL INGLATERRA' LABEL R1 OVER
2 AS 'TOTAL ITALIA' LABEL R2 OVER
4 AS 'TOTAL ALEMANIA' LABEL R3 OVER
3 AS 'TOTAL JAPÓN' LABEL R4 OVER
RECAP TOTEUR/I9=R1+R2+R3; AS 'TOTAL EUROPA'
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE=endeflt,$
TYPE=REPORT,BORDER=LIGHT,BORDER-STYLE=SOLID,BORDER-COLOR=RGB(66 70 73),$
TYPE=REPORT,LABEL=C1,JUSTIFY=CENTER,STYLE=BOLD,SIZE=12,$
TYPE=REPORT,LABEL=C2,JUSTIFY=RIGHT,STYLE=BOLD,COLOR=WHITE,BACKCOLOR=BLACK,$
TYPE=DATA,COLUMN=SALES,STYLE=BOLD,$
ENDSTYLE
END
WebFOCUS 7.7.05
April 30, 2012, 10:38 AM
ferran
Thank's for your suggestion Dan, but I have mentioned I would do this without this kind of (styling) solution. But, seem's there's no other way....