Introduction
The styles that can be used in reports are separated into text styles and para (paragraph) styles. Text styles define the style of the text content within a paragraph, such as the font to be used. Para styles define the style to be used for the paragraph like indentation and spacing.
Text Styles
Custom Text Styles
Custom styles can be defined using the <FontStyles> tag.
Predefined Text Styles
The following predefined styles are supported:
Style Name | Font | Size | Style |
---|---|---|---|
Normal | Arial | 10 | Normal |
Normal18pt | Arial | 8 | Normal |
Bold | Arial | 10 | Bold |
Bold8pt | Arial | 8 | Bold |
Italic | Arial | 10 | Italic |
Heading0 | Arial | 24 | Bold |
Heading1 | Arial | 18 | Bold |
Heading2 | Arial | 16 | Bold |
Heading3 | Arial | 14 | Bold |
Heading4 | Arial | 12 | Bold |
Heading5 | Arial | 12 | Normal |
Heading6 | Arial | 11 | Italic |
Heading7 | Arial | 10 | Normal |
Example Script:
<Text>This is normal text</Text> <Text font="Normal8pt">This is normal8pt text</Text> <Text font="Bold">This is bold text</Text> <Text font="Bold8pt">This is bold8pt text</Text> <Text font="Italic">This is italic text</Text> <Text font="Heading0">This is Heading0 text</Text> <Text font="Heading1">This is Heading1 text</Text> <Text font="Heading2">This is Heading2 text</Text> <Text font="Heading3">This is Heading3 text</Text> <Text font="Heading4">This is Heading4 text</Text> <Text font="Heading5">This is Heading5 text</Text> <Text font="Heading6">This is Heading6 text</Text> <Text font="Heading7">This is Heading7 text</Text>
Example Result:
Predefined Paragraph Styles
Custom Paragraph Styles
Custom styles can be defined using the <ParaStyles> tag.
Predefined Paragraph Styles
The following predefined styles are supported:
Para Name | Style |
---|---|
Normal | Alignment: Left |
Center | Alignment: Centered |
Right | Alignment: Right |
WithSpace | Aligned left with some space before and after paragraph |
NormalGrey | Aligned left with grey background |
NormalGreyWithSpace | Aligned left with grey background and some space before and after paragraph |
NormalLightGrey | Aligned left with light grey background |
CenterWithSpace | Centered with some space before and after paragraph |
GreyHeader | A header-like style with grey background |
TableCaption | Aligned left with a little space after the text |
Heading0 | Predefined style for header on level 0 |
Heading1 | Predefined style for header on level 1 |
Heading2 | Predefined style for header on level 2 |
Heading3 | Predefined style for header on level 3 |
Heading4 | Predefined style for header on level 4 |
Heading5 | Predefined style for header on level 5 |
Heading6 | Predefined style for header on level 6 |
Heading7 | Predefined style for header on level 7 |
Example Script:
<Text para="Center">This text is center</Text> <Text para="Right">This text is right</Text> <Text para="WithSpace">This text is With Space before and after</Text> <Text para="NormalGrey">This text is with Grey background</Text> <Text para="NormalGreyWithSpace">This text is with grey background with space before and after</Text> <Text para="NormalLightGrey">This text is with light grey background</Text> <Text para="CenterWithSpace">This text is with centered with space before and after</Text> <Text para="GreyHeader">This text is with Grey background</Text> <Text para="TableCaption">This text is aligned left wit a little space after the text</Text> <Text>Last Row (Normal)</Text>
Example Result:
What's Next?
Refer to the Help for more information on text and paragraph styles, for example, how to apply them to table content and table headers.