rzr... UNDERLINE works on the screen, but in a text file it just puts individual dashes. Thanks for the suggestion though.
Here is the output to the screen, which looks like I want the text file to look:
Code:
Customer name
──────────────────────────────
Miscellaneous
──────────────────────────────
MOTOR PARTS
──────────────────────────────
But here is the output in the text file when pulled into a text editor:
Code:
Customer name
------------------------------
Miscellaneous
------------------------------
MOTOR PARTS
------------------------------
mrobles, I'm aware of using PCL commands and escape sequences for laser printers, but I'm don't want to hard-code embedded (or even optional based on printer type) sequences in the program as I'd like it to be both viewable with the underlines in a text editor (for example) and for the text to be merged into a pdf template with the underlining intact.
It may be there is no way to do it without resorting to some non-generic coding, but I keep hoping...