Managing products and portfolios : Setting up and generating reports workflow : Report templates : Report components : Heading style tags
  
Heading style tags
You can define the style, size, and other characteristics of the paragraphs in the report by using the fp:headingstyle tag. You can use any number of fp:headingstyle tags and reference the tags from other parts of the template.
 
Attribute
Description
font
A mandatory attribute that defines the name of the font. You can choose from the following fonts:
Courier
Times
Symbol
Helvetica (becomes Arial)
Zapfdingbats (becomes Wingdings in PDF)
In RTF reports, you can use the override1 and override2 attributes to use more fonts.
name
A mandatory attribute that defines the name of the heading style. For example, Heading 1 or Normal.
size
A mandatory attribute that defines the size of the font.
alignment
The horizontal alignment of the paragraph (left, right, or center).
The default value is left.
color
The color of the heading style. The color is defined by using RGB values. For example, to make the heading style red, use the value 255,0,0.
The default value is 0,0,0, which indicates black.
format
The format of the heading style. The following formats are available:
bold
italic
strikethru
underline
The default value is "", which indicates no formatting.
hasheadingno
Determines whether a heading style has heading numbers. This attribute affects PDF reports only. In RTF reports, use the heading numbering features in the word processors.
The default value is true, which indicates that heading numbers are included.
indent
Determines the left indent of the paragraph. An indent of 30 moves the text approximately 2 cm to the right.
The default value is 0.
newpage
Determines whether a page break is inserted before the heading style is required.
The default value is false.
nodestyle
Only one nodestyle attribute must be in the template. If a heading style has nodestyle attribute value set to “true”, that heading style is used for all the non-folders in tree structures (fp:tree). If no heading style has a value set to "true", the non-folders are numbered the same way as the folders.
The default value is false.
override1
Overrides the font attribute for RTF reports. When this attribute is used, the fonttbl tag in RTF font table is changed.
For example, if override1="NEW_FONT_STYLE", the value changes from:
{\f7\froman\fcharset0 Times New Roman;}
to
{\f7\NEW_FONT_STYLE\fcharset0 Times New Roman;}
The default value is "", which indicates that the RTF font table is not overridden.
override2
Overrides the font attribute for RTF reports. When this attribute is used, the fonttbl tag in RTF font table is changed
For example, if override2="NEW_FONT_NAME":
Before: {\f7\froman\fcharset0 Times New Roman;}
After: {\f7\froman\fcharset0 NEW_FONT_NAME;}
The default value is "", which indicates that the RTF font table is not overridden.
textbefore
Determines if a heading style has a prefix. This attribute affects the following heading styles:
Heading 1, Heading 2, and so on: For example, setting this attribute to "Chapter" places the word "Chapter" before all the chapters.
HeadingAttribute: For example, if you set this attribute to "smallStyle", an empty paragraph with the headingstyle "smallStyle" is placed before the heading attribute when presented in fp:tree tags.
The default value is "".
textafter
Determines if a heading attribute is followed by an empty paragraph. If the value is set to "smallStyle", an empty paragraph with headingstyle "smallStyle" is placed after the heading attribute when presented in fp:tree tags. This attribute affects the heading attribute only.
The default value is "".
Example
<fp:headingstyle
  font="TIMES"
  name="Normal"
  size="10"
  alignment="left"
  color="0,0,0"
  format=""
  hasheadingno="true"
  indent="0"
  newpage="false"
  nodestyle="false"
  override1=""
  override2=""
  textbefore=""
/>
See also
Report components