Applies to: posted in the Clarion 6 group (2005); the LinePrint extension template; Windows 98 and XP.
Problem
The LinePrint extension template was used to bypass the Windows print engine for a dot matrix printer. It worked on Windows 98 but not on XP. The poster asked for a solution.
Solution
Two answers were given:
- Check the port settings in Device Manager on the XP machine and set "Use any interrupt assigned to the port". The replier said this generally makes XP behave like Windows 98. A later post, from a different poster, said the class below "works like a charm"; the Device Manager setting was not reported as tried.
- Do not bypass the print engine at all. Send the text to the printer through the Windows API. The job is queued like any print job and still carries plain ASCII characters, so ESC codes can be sent. This works on Windows 98 and XP. The poster of this answer attached a class he used for it; the thread has no code in the text.
Caveats
- The class was written for Clarion 5.5: it included C55Util.inc, which the original poster could not find in Clarion 6.1. A reply said to change the include to CWUtil.inc; nobody reported doing so.
- The original poster did not report which answer worked for him. The poster of the Device Manager setting later thanked the class author.
- The attachment is not in the dump; the class is not reproduced here.
Today (2026)
Not re-tested. The idea of sending the text through the Windows spooler instead of a direct port likely still holds.
Sources: Alfred (Jun 2005, the question), Daan M., Dries D., Paul H., Steven P., Chris B., Gustavo P. (Jun 2005) in softvelocity.public.clarion6.