Cell formatting

You use the format functions specified for the Format attribute in the Column sets (CS206020) window (for the column cell) and in the Row sets (CS206010) window (for the row cell).

To set the format for the column or row cells, you can use the standard formats defined for the format function in .Net. Both standard (numeric and datetime) and user-defined data formats are supported.

The standard numeric data formats use the window Axx, where A is a single alphabetic character called the format specifier, and xx is an optional integer called the precision specifier. The precision specifier ranges from 0 to 99 and controls the number of significant digits or zeros to the right of a decimal point. The format string cannot contain white spaces.

The standard DateTime format string consists of a single format specifier character. If the format specifier is not found in the list of standard string format specifiers, a runtime exception is thrown. If the format string is longer than a single character (even if the extra characters are blanks), the format string is interpreted as a custom format string.

If the standard numeric format specifiers do not provide the type of formatting required by the report, you can use custom format strings. The custom format strings use the format characters to specify what symbol should be placed in the specific position of the format string. Any numeric format string that does not fit the definition of a standard numeric format string is interpreted as a custom numeric format string. Thus, the format string c! is interpreted as a custom format string because it contains two alphabetic characters, even though the character c is a standard numeric format specifier. The custom DateTime format specifiers can be used to create a custom DateTime format string.

Related concepts

Analytical report parameters

Column sets - overview

About row sets

About data filtering criteria

Printing styles

About formulas