Generating an Internal Cascading Style Sheet for HTML Reports

How to:

Reference:

When you create a report in HTML format, code is generated that specifies how the report is formatted. You can set up your report to generate an internal Cascading Style Sheet as part of this HTML code. This will:

You can generate an internal Cascading Style Sheet and apply an external Cascading Style Sheet in the same report request. If any formatting instructions conflict, the internal Cascading Style Sheet should override the external Cascading Style Sheet.

Note: In most cases, you should not specify native WebFOCUS StyleSheet attributes and external CSS classes in the same report or style sheet. For more information, see Using an External Cascading Style Sheet.


Top of page

x
Syntax: How to Generate an Internal Cascading Style Sheet

You can have an internal Cascading Style Sheet created as part of the HTML code that is generated for a report in HTML format. To do so:

Outside of a report request, use

SET HTMLCSS = {ON|OFF}

Within a report request, use

ON TABLE SET HTMLCSS {ON|OFF}

where:

ON

Generates an internal Cascading Style Sheet in the HTML output to control most aspects of the report appearance. This is the default for reports created in the Report Painter.

OFF

Turns off the generation of an internal Cascading Style Sheet. Instead, formatting tags are placed in each HTML table cell used to create the report. OFF is the default value.


Top of page

x
Reference: Requirements for Internal Cascading Style Sheets

If you wish to display a report formatted via an internal Cascading Style Sheet (CSS), you must have a Web browser that supports Cascading Style Sheets. Microsoft Internet Explorer Version 5.0 or higher, support Cascading Style Sheets.

Note that how an internal Cascading Style Sheet formats your report is determined entirely by your Web browser support and implementation of Cascading Style Sheets, not by WebFOCUS. Some Web browsers may not fully support the latest CSS version, or may implement a CSS feature in a different way.


WebFOCUS