How do I print a dashed or dotted line on an ABC report?

Applies to: a report built with the standard ABC report formatter, posted in the C5.5 EE group (2001). The thread names no other version.

Problem

The poster wanted dashed lines in a report. The help did not show how to use PENSTYLE or SETPENSTYLE on a specific Line control, and a third-party report template was not an option.

Solution

  1. Draw the line in code instead of relying on the Line control's own look: set the target to the report band, set the pen style, draw, and reset the target.
SETTARGET(Report,?FormBand)
SETPENSTYLE(PEN:Dot)
LINE(7500,100,0,8300)
SETTARGET
  1. To keep laying the line out in the report formatter, place an ordinary Line control, hide it and draw a dotted line over it with its own position and size:
?MyLine{PROP:Hide} = True
LINE(?MyLine{PROP:XPos}, ?MyLine{PROP:YPos}, ?MyLine{PROP:Width}, ?MyLine{PROP:Height})
  1. The other pen styles (PEN:Dot and its siblings) are listed in equates.clw in LIBSRC.

Caveats

  • A first suggestion, a string of underscore or dash characters set to transparent, did not suit the poster because some lines were at angles.
  • The poster was also pointed to "graphics primitives" in another group; the LINE call above is that route.
  • Where the code goes (which report embed point) is not stated in the thread.

Today (2026)

Likely unchanged, since SETPENSTYLE, LINE and the PEN: equates are language-level; not re-tested on a current build.

Sources: Ramon R. (Jun 2001, the question), Chris K., Peter G. (Jun 2001) in softvelocity.products.c55ee.