Even if you are using some other environment, it can be helpful to verify that the printer and the form storage device are operating correctly. For example, assume you have a macro stored in the printer, with the ID number 123. Using EDIT, you can create a file containing <esc>&f123Y<esc>&f4X(message)<esc>&l0H and use the DOS command COPY filename.PRN LPTn /B (where filename is the name of the file and LPTn is the printer port number, normally LPT1) or COPY filename.PRN PRN /B to send the file to the printer. This command will cause form 123 to be selected and added to each sheet of paper printed by the printer, until a reset command is sent, and will cause the printer to print one page with the form overlaid on it and (message) in the upper left corner.
Printing from a Windows application normally sends a reset command, so the form will not overlay and the command will be cleared if you open a Windows application like Word or CorelDraw and print from it. (See also Calling forms from Windows applications through the Windows printer driver.)
Note: When entering PCL commands, be very careful to use the correct
case (capital or small letters.) The commands are case-sensitive. Also,
distinguish between lower-case letter l and digit 1, and between letter O
and digit 0 (zero.)
where filename is the name of the file and LPTn is the printer port to which the printer is connected. The printer should eject a page with form #123 printed on it and TEST PRINT (or whatever message you entered) in the upper-left corner. To create a test file to print a different macro ID, substitute that ID number for 123 above, in the command <esc>&f123Y; the escape sequence for macro #nnn would be
<esc>&fnnnY<esc>&f4X(message)<esc>&l0H
where nnn is the desired macro ID number and (message) is the message (if any) you want in the upper-left corner.
To eliminate the TEST PRINT or other message, do not enter anything between &f4X and the third escape character. No printout will emerge when the file is copied to the printer, but the form still will overlay on anything printed (until the printer is reset.)
Questions:
SOY DE ARGENTINA. ME PODRIAN INFORMAR COMO PONER LOS CONTROLES DE MACROS PCL5 EN UN FORMULARIO IMPRE.PRN Y LUEGO EJECUTARLOS DESDE UN PROGRAMA COBOL?James Newton replies: Escape character in VMS COBOL+
GRACIAS: PEDRO LUNA
Comments:
file: /Techref/language/pcl/dosedit.htm, 5KB, , updated: 2009/7/21 08:29, local time: 2024/11/15 04:42,
18.221.147.236:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.ecomorder.com/techref/language/pcl/dosedit.htm"> Using DOS EDIT on an IBM PC to set up test files</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to massmind.ecomorder.com! |
.