Generating Format-Specific Style Blocks
You can create format-specific style blocks from Report
Painter for HTML, EXCEL, PDF, AHTML, FLEX, and PPT reports.
Note:
- This feature
only applies to StyleSheet features. Non-styling reporting options are
added outside of the specific style blocks and applied based on
the format you select at run time.
- If the output
format is changed to anything other than User, you are prompted
with an alert. If the selected format is HTML, PDF, or EXCEL and
a style block for one of those formats exists, that style block
is retained and the other blocks are deleted. If there is no matching
style block, then the General style block is retained.
- Multiple style blocks
with the same TYPE attribute can be included or embedded in a StyleSheet.
Normally, the WebFOCUS inheritance rules determine which attributes take
effect. However, if you are using a Cascading Style Sheet (.css
file) in addition to a WebFOCUS StyleSheet, and a style block containing
a CLASS attribute has the same TYPE as another style block, the
CLASS attribute will be overridden and will not take effect.
x
Procedure: How to Create a Style Block
-
In Report
Painter, use the drop-down list to click User from
the Output Format toolbar.
The General button appears on the Output Format toolbar.
-
Style
your report as desired.
-
Click General and
select Copy active styling to and then the
format you want this style block to apply to, HTML, EXCEL, PDF, AHTML, PPT, FLEX.
Note: Once a style block is created, a subtab appears
on the Report Options dialog box with corresponding report options
available for that style block.
-
To create
additional blocks for different formats, click General (note
that this button may say the name of the style block applied) and
click Create new empty style block and then the
format.
-
To copy
styling from a style block you have already created, click General (note
that this button may say the name of the style block applied) and
click Copy styling from and then the format.
x
Procedure: How to Activate a Style Block
-
In Report
Painter, use the drop-down list to click User from
the Output Format toolbar.
The General button appears on the Output Format toolbar.
-
Click General and
click Activate style block, then the format
you want to use.
Note: Once a style block is activated, a subtab
appears on the Report Options dialog box with corresponding report
options available for that style block.
Your style block is
applied and the General button changes into a button reflecting the
style you select.
x
Reference: Options for Style Blocks
The
following options are available for style blocks:
-
Activate style block
-
Activates a selected style block.
-
Create new empty style block
-
Enables you to create a new style block.
Tip: You
may use the StyleSheet File Selector to apply different StyleSheets
to each style block. For more information about the StyleSheet File Selector,
see Using the StyleSheet File Selector.
-
Copy active styling to
-
Copies the style from the current style block to another.
-
Copy styling from
-
Copies the style from the selected style block to the current
style block.
-
Clear current style block
-
Removes all formatting from the style block.
-
Delete current style block
-
Removes the current style block from the report. The styling
that is applied to the report remains.