Characters - Can underlined characters and regular characters be printed on the same line?

0 Likes

Problem:

The report must have underlined characters and non-underlined characters on the same line.  How is this accomplished with AcuCOBOL-GT?

Resolution:

It is possible to print regular and underlined characters on the same line.  Here's one way using the WIN$PRINTER and W$FONT library routines. This requires the Windows Runtime.

First, call the W$FONT library routine to load a regular font and an underlined font.

Then write the line in pieces using WIN$PRINTER to specify the font for each piece of the line, and using the WITH NO ADVANCING phrase on the WRITE statements.

The attached sample program, print1.cbl, demonstrates this method.

Attachments:

Print1.cbl

Old KB# 3180
Comment List
Related
Recommended