In this section: |
You can create a StyleSheet:
How to: |
You can create a StyleSheet within a report request. This allows you to create and maintain the formatting for your report directly in the report request. This type of StyleSheet is known as an inline StyleSheet.
ON TABLE SET STYLE[SHEET] * declaration [declaration] . . . [ENDSTYLE]
where:
The following illustrates an inline StyleSheet. The StyleSheet is highlighted in the request.
TABLE FILE GGSALES
SUM UNITS DOLLARS BY CATEGORY BY PRODUCT
HEADING
"Sales Report"
FOOTING CENTER
"**End of Report**"
ON TABLE SET PAGE-NUM OFF
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, $
TYPE=HEADING, FONT=ARIAL, SIZE=12, STYLE=BOLD, $
TYPE=TITLE, STYLE=ITALIC, $
TYPE=DATA, COLUMN=N1, STYLE=BOLD, COLOR=BLUE, $
TYPE=FOOTING, COLOR=RED, STYLE=BOLD, $
ENDSTYLEEND
The output is:
How to: Reference: |
You can create a StyleSheet as a separate file and apply it to as many reports as you wish. A StyleSheet file contains only declarations and options. Unlike an inline StyleSheet, a StyleSheet file does not contain the ON TABLE SET STYLESHEET and ENDSTYLE commands. You can apply a StyleSheet file to a report using the SET STYLESHEET command, as described in How to Apply a WebFOCUS StyleSheet File to a Report. For information about StyleSheet declarations, see General WebFOCUS StyleSheet Syntax.
As an alternative to creating a new StyleSheet file, you can use one of the sample StyleSheet files provided with WebFOCUS and Developer Studio as a template.
Whether you create a new StyleSheet file or customize an existing one, you need to store it in the correct location, as described in Naming and Storing a WebFOCUS StyleSheet File.
After you have created a StyleSheet file, you can check it for syntax errors using the CHECK STYLE command, as described in Validating WebFOCUS StyleSheet Syntax.
When you create a StyleSheet file to be used in:
If you create a StyleSheet for a self-service application, you can deploy your StyleSheet file to a Reporting Server base application directory. You can deploy a StyleSheet file to the same application directory as the report procedure, if it is only referenced by procedures in that application directory. If the StyleSheet file is deployed to a different directory than the report procedure that references it, the directory containing the StyleSheet must be on the Reporting Server application path when the procedure is run. The \ibi\apps\baseapp directory is the base application directory that is, by default, included on the Reporting Server default search path.
You should name a StyleSheet file filename.sty, where filename can include letters, numbers, and underscores (_), and otherwise must be valid for the operating environments on which it resides.
To apply your StyleSheet file at the beginning of your report request, use
SET STYLE[SHEET] = stylesheet
To apply your StyleSheet file within your report request use
ON TABLE SET STYLE[SHEET] stylesheet
where:
WebFOCUS |