Was this helpful?
.Underline and .Nounderline Statements--Underline Text
The .underline and .nounderline statements let you underline text.
These statements have the following format:
.underline | .ul | .u
    any printing statements
.
nounderline | .noul | .nou
Description
To underline text in a report, put an .underline statement immediately before the spot where underlining begins, and .nounderline at the spot where it stops. You can underline anything that can be printed, including character strings, column values, parameter values, or aggregate values. Underlining occurs only in reports written directly to a file or printer. Report-Writer ignores underlines when displaying a report on the screen and in reports sent to a file or printer from the screen. By default, the underlining character is an underscore (_). This can be changed with the .ulcharacter statement.
When underlining is in effect, only letters and digits are underlined. The .underline statement ignores all other characters, such as blanks, commas, and periods. Underscores print on the same line as the text. If the underlining character is anything other than an underscore, Report-Writer prints the underlining on the line below the one containing the text to be underlined.
Note:  Printers that interpret carriage returns as a combination of both a carriage return and a line feed is not able to use the underscore (_) as the default underlining character. If your printer is configured this way, you should use the .ulcharacter command to reset the underline character to a hyphen (‑) or some other character; otherwise, if you use the underscore as the underlining character, Report-Writer prints the underline above the text instead of below it.
Example
To produce the following line:
Numbers - 123,456 are underlined,

but punctuation is not!
Use the following specifications:
.underline
.print 'Numbers - 123,456 are '
.print 'underlined,'
.newline
.println 'but punctuation is not!'
.nounderline
Last modified date: 04/03/2024