The LinePrint template does not print for me (Reported, not reproduced)

Applies to: posted in the Clarion 9 group; the thread does not name a template chain or the printer type.

Problem as reported

A poster asked whether anyone had the LinePrint template working and for a functional example. After a month he wrote that he could not make it work and asked for instructions.

What the thread found

  • One poster had it working, but changed it so it did not open and close the port on every line.
  • A second poster showed code of his own that uses PRINTDRV (SETTARGET, then printer{PROPPRINT:device}, then PRINTDRV calls). A reply stated that LinePrint and PRINTDRV are two very different things, so that code is not an example of the template.
  • The usage explained for LinePrint:
    1. The template adds a procedure you can call; there should be a short ReadMe.
    2. You pass the low level device name, for example 'LPT1', and then the string to send.
    3. The call opens the device as a virtual file, writes and closes it.
    4. For serial or USB the device must already be initialized and you must know its low level name, for example 'COM23'.
    5. Some printers print nothing until a Form Feed character, Chr(12), is sent.
  • The original poster did not say whether this helped.

Caveats

The thread does not say what the poster tried or which printer he used. The Form Feed point was offered as a likely cause, not confirmed.

Today (2026)

Not reproduced. This entry records a 2021 report. A reader who has the template running on a current build is asked to confirm the steps or close the entry.

Sources: HPabon (Nov 2021, the question), Carl S., Peter (Nov 2021, Dec 2021) in sv.clarion.clarion9.