Reporting : Native reporting system : Reporting system command language : LEGENDFONT subcommand
  
LEGENDFONT subcommand
Description
Use the LEGENDFONT subcommand with the SELECT command or the SETTING command to specify the typeface (font) of a column legend instead of using the default font type.
Note The SETTING command is valid in the global or local definition blocks of the Report Definition file. If you place the command in the global report block, it affects every report in the Report Definition file. If you place the command in the local report block, it affects only that report. The SELECT command is valid only in the local definition block of a report.
The LEGENDFONT subcommand refers to a FONT command which must be present either in the global definition block or the local definition block.
Note The legendfont can be specified in the Report Editor using the Property Layout section of the Select <class> Properties to Print dialog.
LEGENDFONT subcommand structure
The following structure is used for the LEGENDFONT subcommand:
SELECT field-identifier LEGENDFONT font-identifier
SETTING field-identifier LEGENDFONT font-identifier
Note The font-identifier must be defined by a FONT command in either the global definition block or the local definition block.
Examples – LEGENDFONT subcommand
These two examples show how the LEGENDFONT subcommand may be used with either the SELECT or SETTING commands.
Shows how to code the SELECT command statement to reference a FONT command to print a column legend in a font other than the default font.
Shows how to code a SETTING command statement to reference a FONT command to print a column legend in a font other than the default font.
Example – SELECT LEGENDFONT subcommand
Suppose this FONT command statement is in the global definition block of a Report Definition file.
{ FONT colegend HELV 10, BOLD }
You may reference this font setting in a SELECT command you place in the local definition block of a given report by using this command statement:
SELECT Name LEGENDFONT colegend
This command statement overrides all other references to font that may apply to this report.
Examples – SETTING LEGENDFONT subcommand
Suppose this FONT command statement is in the global definition block of a Report Definition file.
FIELD Name { FONT largetype HELV 14, }
You may reference this font style in a SETTING command you place in the local definition block of a given report by using this command statement.
SETTING Name { LEGENDFONT largetype }
Note Only the column heading is printed using the specified font. This command statement may be overridden by a SELECT command statement with a font reference in the level specification block.
Parent topic
Reporting system command language