Applies to: posted in the Clarion 10 group. No version is named in the text.
Problem as reported
A poster prints two receipts on a thermal printer and wants both in the previewer. He wants to cut the paper at the end of the first receipt; the end-of-job process already cuts after the second. The control codes are ASCII 29 (1Dh) and ASCII 0. Printing them on a detail line by itself did not work: when he intercepted the WMF, his codes were not there, and the character before the V was no longer <29> but something printable. Calling the report twice was not an option.
What the thread found
- A reply recalled a PCL tools template that no longer exists, and another recalled a LinePrint utility in a template set. The poster already had a LinePrint utility; his need is to put the output in the PrintPreviewQ so it can be previewed.
- A third-party product's author said he had almost added this to it, embedding the codes inside the metafile and parsing them out during printing, but nobody needed it.
- Another poster suggested a driver setting for page cut type (such as "Partial cut") in the printer properties, untried by him. The original poster preferred control from the program.
- The poster planned to print a DETAIL with the text CutPaperHere, then loop through the PrintPreviewQ and replace that text in each WMF with the control codes, padded with <0> characters. He had not tried it yet.
- A later reply pointed to Microsoft's article on sending raw data to a printer with the Win32 API (passthrough escapes).
Caveats
- The thread names no property that makes the print engine pass characters through; the one the poster wrote was "wishful thinking".
- No outcome was posted.
Today (2026)
Not reproduced. This entry records a 2020 report. If you got control codes through the previewer on a current build, say how in the comments.
Sources: Scott R. (Feb 2020, the question), Greg B., Geoff, Ramon R. (Feb 2020), Lee W. (Feb 2020, Mar 2020) in sv.clarion.clarion10.