In this section:
A StyleSheet consists of declarations that identify the report components you wish to format and the formatting you wish to apply. A declaration usually begins with the TYPE attribute and is followed by the attribute=value pairs you assign to the report component. You can also include comments that provide context for your StyleSheet. Comments do not affect StyleSheet behavior. For details, see Adding a Comment to a WebFOCUS StyleSheet.
For information about identifying a report component, see Identifying a Report Component in a WebFOCUS StyleSheet.
Each StyleSheet declaration specifies a series of attributes in the form
attribute = value, [attribute = value, ...] $
Following is a request that includes an inline StyleSheet. The StyleSheet begins with ON TABLE SET STYLE * and ends with ENDSTYLE.
TABLE FILE CENTORD HEADING " " "C e n t u r y C o r p o r a t i o n" " " "Order Revenue - 2000 Q3" " " "page <TABPAGENO" " " SUM ORDER_DATE/MtDY ORDER_NUM LINEPRICE AS 'Order,Total:' BY LOWEST 9 ORDER_DATE NOPRINT WHERE (ORDER_DATE GE '2000/10/01') AND (ORDER_DATE LE '2000/12/31'); ON TABLE SET ONLINE-FMT HTML ON TABLE SET HTMLCSS ON ON TABLE SET STYLESHEET * TYPE=Report, GRID=Off, UNITS=Inches, $ TYPE=Data, FONT='Times', $ TYPE=Data, BACKCOLOR=Aqua, COLOR=Navy, WHEN=LinePrice GT 500000, $ TYPE=Data, COLUMN=LinePrice, BACKCOLOR=Aqua, COLOR=Navy, STYLE=Bold, WHEN=LinePrice GT 500000, $ TYPE=Title, FONT='Helvetica', $ TYPE=Heading, FONT='Helvetica', STYLE=Bold, SIZE=14, JUSTIFY=Center, COLOR=White, BACKCOLOR=Dark Turquoise, $ TYPE=Heading, LINE=6, BACKCOLOR=White, COLOR=Dark Turquoise, $ TYPE=Heading, LINE=7, BACKCOLOR=White, $ ENDSTYLE END
There are many ways to structure your StyleSheet declarations in order to make the StyleSheet easy to read. You can do any one, or a combination, of the following:
TYPE=HEADING, FONT=ARIAL, SIZE=14, STYLE=BOLD, $
TYPE=TITLE, COLUMN=N2, STY\ LE=BOLD+ITALIC, COLOR=BLUE, $
You can add comments to a StyleSheet to give context to a declaration. Comments do not affect StyleSheet behavior.
You can add a comment:
TYPE=HEADING, STYLE=BOLD, COLOR=BLUE, SIZE=14, $ Sample comment
-* This is a sample comment $ This is another sample comment
Note: You can add comments anywhere in your request, not only in StyleSheets.
You can check a StyleSheet file to see if there are any syntax errors in it using the CHECK STYLE command. CHECK STYLE does not check the spelling of font names, nor does it verify the availability of specified fonts on your system.
You can issue the CHECK STYLE command in the Command Console in Developer Studio.