Focal Point
[CLOSED] Heading Font with Compound HTML & HFREEZE

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9337008226

August 01, 2012, 03:16 PM
VinceCSW
[CLOSED] Heading Font with Compound HTML & HFREEZE
I have a compound HTML report I am trying to create. I first started using HTMLTABLE's, but HFREEZE is not supported with it. What I did was just make both HTML's instead of HTMLTABLE's. (Not sure if this is the best way?) It shows both of the reports, but does not respect the font settings I have for the heading on the top report. No matter what I put in the TYPE=HEADING, it seems to come out at a size 8 bold font. Below is an example with the CAR file. Any ideas on how to get the HEADING font to be bigger? Thanks

DEFINE FILE CAR
MY_HEADING/A20='TEST CAR HFREEZE';
END
TABLE FILE CAR
PRINT
'CAR.COMP.CAR'
'CAR.CARREC.MODEL'
'CAR.BODY.BODYTYPE'
'CAR.BODY.DEALER_COST'
'CAR.BODY.RETAIL_COST'
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='ARIAL',
SIZE=8,
HFREEZE=ON,
SCROLLHEIGHT=2.000000,
$
TYPE=TITLE,
STYLE=BOLD,
$
TYPE=TABHEADING,
SIZE=10,
STYLE=BOLD,
$
TYPE=TABFOOTING,
STYLE=BOLD,
$
TYPE=HEADING,
LINE=1,
OBJECT=TEXT,
ITEM=1,
SIZE=16,
STYLE=BOLD,
$
TYPE=HEADING,
LINE=1,
OBJECT=FIELD,
ITEM=1,
SIZE=16,
STYLE=BOLD,
$
TYPE=HEADING,
LINE=2,
OBJECT=TEXT,
ITEM=1,
SIZE=24,
STYLE=BOLD,
$
TYPE=FOOTING,
STYLE=BOLD,
$
TYPE=SUBHEAD,
SIZE=10,
STYLE=BOLD,
$
TYPE=SUBFOOT,
STYLE=BOLD,
$
TYPE=ACROSSVALUE,
SIZE=8,
$
TYPE=ACROSSTITLE,
STYLE=BOLD,
$
TYPE=GRANDTOTAL,
STYLE=BOLD,
$
ENDSTYLE
END
DEFINE FILE CAR
TEXT1/A5='MTD';
TEXT2/A5='YTD';
END
TABLE FILE CAR
SUM
TEXT1 AS ' '
TEXT2 AS ''
'CAR.COMP.CAR' NOPRINT
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='ARIAL',
SIZE=8,
$
TYPE=TITLE,
STYLE=BOLD,
$
TYPE=TABHEADING,
SIZE=10,
STYLE=BOLD,
$
TYPE=TABFOOTING,
STYLE=BOLD,
$
TYPE=HEADING,
SIZE=10,
STYLE=BOLD,
$
TYPE=FOOTING,
STYLE=BOLD,
$
TYPE=SUBHEAD,
SIZE=10,
STYLE=BOLD,
$
TYPE=SUBFOOT,
STYLE=BOLD,
$
TYPE=ACROSSVALUE,
SIZE=8,
$
TYPE=ACROSSTITLE,
STYLE=BOLD,
$
TYPE=GRANDTOTAL,
STYLE=BOLD,
$
ENDSTYLE
END

This message has been edited. Last edited by: Kerry,


WebFocus 8.2.01
Windows 2016
XLSX, HTML, PDF
August 02, 2012, 03:10 PM
susannah
assuming you mean
HEADING
"<MY_HEADING "

then ...
TYPE=REPORT,GRID=OFF,FONT='ARIAL',SIZE=8,HFREEZE=ON,SCROLLHEIGHT=2.000000,$
TYPE=TITLE,STYLE=BOLD,$
TYPE=HEADING,LINE=1,OBJECT=FIELD,ITEM=1,COLOR=RED, SIZE=18,STYLE=BOLD,$
TYPE=GRANDTOTAL,STYLE=BOLD,$
ENDSTYLE
END

you've got way too many TYPE=HEADING in your code. simplify.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
August 02, 2012, 05:57 PM
VinceCSW
Your assumption is correct about the heading.

I tried what you suggested and get the red color, but the font size does not change when I change the FONT= Seems odd to me...any ideas?


WebFocus 8.2.01
Windows 2016
XLSX, HTML, PDF
August 03, 2012, 10:18 AM
susannah
yes it does.
read your code more carefully, and clean out all the extra TYPE=HEADING in your style sheet.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID