From: CSBVAX::MRGATE!info-vax-request@kl.sri.com@SMTP 16-FEB-1988 04:05 To: ARISIA::EVERHART Subj: Re: Problem with define/form Received: from ucbvax.Berkeley.EDU by KL.SRI.COM with TCP; Fri 12 Feb 88 06:41:33-PST Received: by ucbvax.Berkeley.EDU (5.58/1.26) id AA24259; Fri, 12 Feb 88 06:14:16 PST Received: from USENET by ucbvax.Berkeley.EDU with netnews for info-vax@kl.sri.com (info-vax@kl.sri.com) (contact usenet@ucbvax.Berkeley.EDU if you have questions) Date: 11 Feb 88 23:25:01 GMT From: unmvax!nmtsun!hydrovax@ucbvax.Berkeley.EDU (M. Warner Losh) Organization: NMT Hydrology program Subject: Re: Problem with define/form Message-Id: <1378@nmtsun.nmt.edu> References: <8802110418.AA13011@ucbvax.Berkeley.EDU> Sender: info-vax-request@kl.sri.com To: info-vax@kl.sri.com In article <8802110418.AA13011@ucbvax.Berkeley.EDU>, JEREMYM@EPVAX.SUSSEX.AC.UK writes: > I am using a laserjet II, and have defined setups for the various > fonts that we wish to use. The modules in the device control library > contain just the escape sequence to initialize the printer. We have a LaserJet+ hooked to our system and are about to get a LaserJet II There were some initial problems, but not it works great. > All works fine, but I get a blank sheet of paper printed for each of the > setup and reset sequences. Is there anyway to get around this? There is a way, but it is gross beyond belief :-) > > These are the setups we use: > > $ set printer/cr/lowercase/printall/passall lca0: Good. This is correct. We have modem enabled on ours so that it barf at 9600 baud. Never could get flow control working correctly. > $initialize/queue/start/lib=laserjetlib/on=lca0: - > /separate=(reset=reset,noburst,noflag,notrailer) > /default=(noflag,noburst,notrailer,form=prestige) laser Ditto the good here. > $define/form/stock=default prestige 1 /desc="Portrait Prestige" - > /setup=(prestige) /length=70/wid=96/margin=(bottom=0)/nowrap/notrunc Here is where you run into problems. I did this on our system for a long time until the users started complaining about extra pages coming out. I did a lot of things to try to fix it, even writing a custom print symbiont. All except one failed. First some background. In the Orange doc set (System management AND release notes) it tells how to set this stuff up. There is a comment that files that have what looks like printable text in the setup module will force an extra page (bug or feature? You decide). The problem is that HP uses non-ANSI escape sequences for their printers. So, VMS's symbiont thinks that there is some garbage that the user wants on the first page. Well, in this case that is not correct, since the "garbage" isn't printing. This is the point that we stayed at for months while I tried various different (and wrong) ways of getting the printer to stop printing extra pages. Then it hit me, why not have a setup for each page of the print-out so that you don't get these extra pages? This is what we have been doing now for the past few months. The only time we EVER get a blank page is when the system reboots or when the SYMBIONT starts. Here's the commands for the curious: $ DEFINE/FORM/DESCRIPTION="Compressed output"/LENGTH=82/WIDTH=132 - /PAGE_SETUP=COMPRESS/STOCK=DEFAULT COMPRESS 100 Notice the use of /PAGE_SETUP instead of /SETUP. VMS doesn't care what you place in this module, so it doesn't do anything special to it. I hope that this helps. -- bitnet: losh@nmt.csnet M. Warner Losh warner@hydrovax.nmt.csnet ! Don't know if this works, let me know. csnet: warner@hydrovax.nmt.edu uucp: ...{cmcl2, ihnp4}!lanl!unmvax!nmtsun!warner%hydrovax