Personal LW NT: LaserJet Emulation Page Layout Codes (2/95)


I'm trying to use a Personal LaserWriter NT to print reports from our DEC VAX via a serial port.

The printer responds to our requests. However, it prints in a font that is too large to have all the text appear on the page. I'm not sure if it is related to the communication software, VAX print que, or the NT settings. I've tried using the printer's HP LaserJet and Diablo settings, same result. I have tried modifying printer settings in the software, same result.

I've been told that I need to set the printer to 66 lines of output. I don't really know what this means. Any words of wisdom?

There are at least two parameters that need to be changed (Lines per page and character size) to achieve the page layout that you want. Optionally you may need to set top and bottom margins. To do this in LaserJet emulation you need to pass certain escape sequences to the printer to change these parameters.

If you do not have access to a text/binary editor such as EDT, request your MIS department to send the following information to the printer.

Commands
--------
Page length:

ESC&1#P # = NUMBER OF LINES PER PAGE
ESC&1#E # = NUMBER OF LINES AT TOP MARGIN
ESC&1#F # = NUMBER OF LINES AT BOTTOM MARGIN

Font Selection:

ESC(s7C 7 point charcter size
ESC(s8C 8 point charcter size
ESC(s8.5C 8.5 point charcter size
ESC(s10C 10 point charcter size
ESC(s12C 12 point charcter size
ESC(s14.4C 14.4 point charcter size


Support Information Services
Published Date: Feb 19, 2012