- 13 Dec 2023
- 1 Minute to read
- DarkLight
Introduction
- Updated on 13 Dec 2023
- 1 Minute to read
- DarkLight
General
Styles are used to define the visual appearance of certain parts of a report document.
Example: A Table Cell Style can be used to define how the cell of a table shall be styled in the output report document.
The following types of styles are supported:
- Table Cell Style
Style Properties
Every type of style has one or more style properties.
Example: A Table Cell Style has style properties such as Font, Font Size, Horizontal Alignment etc.
Every style property can either be set to Do Not Set, Keep Original, Constant, or Expression.
Do Not Set
If you set a style property to Do Not Set the respective property will not be set in the report document.
Example: If you set the Font property of a Table Cell Style to Do Not Set for a table used in a Microsoft Excel Report then the font of the table cells will not be set and whatever font is set in the template will be kept.
Keep Original
If you set a style property to Keep Original then the respective property will be kept as it was read from the exported Datasource object.
Example: If you set the Font Size property of a Table Cell Style of a table exported from a Qlik Sense Datasource object to Keep Original, the font size of the original datasource object will be used in the table that is written to the report document.
Constant
If you set a style property to Constant you can set a constant value for that property.
Example: If you set the Font property of a Table Cell Style to Custom, you can select the font you want table cells to have.
Expression
If you set a style property to Expression you can define an Expression that returns the value to set at runtime.
Example: If you set the Font property of a Table Cell Style to Expression, you can define an Expression that returns the font to set.
Depending on the type of style, additional parameters for the expression may be available.
Example: An Expression used for the property of a Table Cell Style has the cell value of the cell for which the style property is being evaluated as a parameter that may be used in the expression.