12. Report-Writer Statements : Print Statements : .Underline and .Nounderline Statements--Underline Text : Description
Share this page                  
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.