From: SMTP%"RELAY-INFO-VAX@CRVAX.SRI.COM" 13-MAY-1994 09:33:17.46 To: EVERHART CC: Subj: RE: need more that 80 cols in landscape on HP Message-Id: <9405110135.AA18441@uu3.psi.com> Date: Tue, 10 May 94 21:41:19 EDT From: Jerry Leichter To: INFO-VAX@SRI.COM Subject: RE: need more that 80 cols in landscape on HP X-Vms-Mail-To: UUCP%"levine@fidler.chinalake.navy.mil" I have an HP Laserjet IIID hooked to a port on a VAX 4000-60 that I am trying to get to print out 132 colomns in landscape mode. The terminal characteristics have been modified to allow line lengths of 132 chars, and I have been working with the setup string that puts the the printer into landscape mode and sets up the fonts,spaceing,margins,etc. My problem is that no matter how I diddle with it, I can not get the line length in landscape mode past 80 char's. If I set the right margin so that fewer col's are wanted, it properly truncates the line, but if the right margin is set so that more than 80 col's are allowed to be printed, it it truncated at 80 col's. I have no idea what you are doing wrong, but here's a setup that works for me with an HP LaserJet+ (yes, that first generation and a half). I've sent this message out a number of times, and rather than edit it to include just the piece you want - and chance leaving out something you'll end up needing - I've just included the whole thing. For 132-wide landscape, you'll want the LANDSCAPE form. -- Jerry --------------Command file to start up printer------------ Notes: (a) These setups assume you have your printer attached to TTA0. Change the second line - the definition of SYS$LASERJET - if that's not the case. (b) If the terminal port you are using has a speed other than 19200 bps, change the set terminal command (third line) as appropriate for your system. If your interface can manage it, I recommend using 19200 bps - my impression is that the resulting performance is better, though the difference is by no means huge. (c) The queue initialization assumes that you have placed the setup modules in file SYS$LIBRARY:LASERJETLIB.TLB. $ set noon $ define/system/exec/translation:terminal SYS$LASERJET TTA0: $ set terminal SYS$LASERJET/perm/nobroadcast/notypeahead/nowrap - /speed=19200/width=80/page=0/device_type=unknown $ set device /spooled=(SYS$PRINT,SYS$SYSDEVICE:) SYS$LASERJET $ initialize/queue/start/lib=laserjetlib/separate=(reset=reset) - /on=SYS$LASERJET/default=(flag,form=portrait) SYS$PRINT $ define/form/stock=default portrait 1 /desc="Portrait Courier" - /setup=(portrait) /length=60/wid=80/margin=(bottom=0)/wrap/notrunc $ define/form/stock=default landscape 2 /desc="Landscape"/setup=(landscape) - /length=45/wid=132/margin=(bottom=0)/wrap/notrunc $ define/form/stock=default compressed 3 /desc="Compressed Portrait" - /setup=(compressed) /length=80/wid=120/margin=(bottom=0) - /wrap/notrunc $ define/form/stock=default clandscape 4 /desc="Compressed Landscape" - /setup=(clandscape) - /length=64/wid=176/margin=(bottom=0)/wrap/notrunc ----------------------Setup modules----------------------- Notes: (a) Each SETUP module should contain exactly one line; I have broken several into two lines to avoid mailer problems. (b) Replace all occurences of by an ESCAPE character before using; (c) CLANDSCAPE uses an 8.5-point, 16.66-pitch line printer font that is not in the standard LaserJet; I have it on a cartridge, number 92286B. I believe it comes standard on a LaserJet II (along, perhaps, with some other fonts, for which you could write your own setup modules). (d) All the exact values shown below have been "tuned" to go with the exact form defintions given above. They reset spacing to make the output look good to my eye. THEY ASSUME 8.5 x 11 INCH PAPER; you'll have to play around with them to get other paper sizes to work. The symptom of a paper size mismatch is sim- ple: The print symbiont will not properly track where top of page is, and output on successive pages will wander all over the sheet. In theory, this dependency can be lessened by adding /form to the set terminal command given above, in which case the symbiont should send an actual form feed, rather than using linefeeds for positioning. I haven't tried this, so I don't know if it will actually work. (e) All the values have been wrapped in ANSI DCS sequences (i.e., ESC P ... ESC \). The LaserJet will ignore both ESC P and ESC \, but the result is to make the LaserJet commands "invisible" to the VMS print symbiont. This supresses one of the two blank pages you otherwise get between jobs. I haven't been able to find a way to supress the other. (f) For best results, follow this rule when printing: Use PRINT/PASSALL for pre-formated PCL files (e.g., converted TeX DVI files); Use PRINT[/NOPASSALL] (the default) for "normal" ASCII files. (g) All this stuff applies to an HP LaserJet+. I have not tried it on a straight LaserJet, nor on a LaserJet II. (I've gotten confirmation that it works right from another site with a LaserJet II, however.) ---------------RESET.TXT----------------- PE\ ---------------CLANDSCAPE.TXT---------------- PE&l1O&l63F(8U(s0p16.66h8.5v0s-3b0T &l5.6470C\ ---------------COMPRESSED.TXT---------------- PE&l0O&a5l80M&a0R&l8D&l80F (8U(s0p16.66h8.5v0s0b0T\ ---------------LANDSCAPE.TXT----------------- PE&l1O&l55F(8U(s0p10h12v0s0b3T\ ---------------PORTRAIT.TXT------------------ PE&l0O&a5180M&a0R&l60F(8U (s0p10h12v0s0b3T&k11.4286H&a4L\ ----------------------------------------------