Path: utzoo!attcan!uunet!cs.utexas.edu!sdd.hp.com!hp-pcd!hpfcso!steve-t From: steve-t@hpfcso.HP.COM (Steve Taylor) Newsgroups: comp.sys.hp Subject: Re: LaserJet II raster help Message-ID: <7370145@hpfcso.HP.COM> Date: 31 May 90 18:03:16 GMT References: <1418@marlin.NOSC.MIL> Organization: Hewlett-Packard, Fort Collins, CO, USA Lines: 29 /comp.sys.hp/atkins@marlin.NOSC.MIL (Hugh T. Atkins)/4:04pm May 29,1990/ } I'm attempting to send raster data from an HP9000 series 520 computer to an } HP LaserJet II printer. ... The problem I am having is with redards to the } _transfer raster data_ command ESC*b#W[raster data] where # = number of } bytes in the raster row. My data is in an INTEGER array. What I have tried is } as follows : } ... } FOR I=1 to 4 ! 4 bytes per row } OUTPUT 200;Somedata(I); ! one byte at a time } NEXT I } ... } Do I need a delimiter between the bytes I'm sending ? Do I need to suppress } CR/LF between bytes ? Am I missing something ? ---------- My guess is that what you're sending here is FORMAT ON (i.e., the data is being converted to ASCII text) when what you want is raw bit patterns. IF each array entry really only holds the value for 1 byte, then you could try change the OUTPUT above to: OUTPUT 200;CHR$(Somedata(I); (Yes, you need to suppress the CR/LF between bytes -- another indication that this is FORMAT ON.) IF each array entry contained 2 bytes of raster data, then an appropriate fix would be to ASSIGN an @name to 200 and set it to FORMAT OFF. Hope this helps, Steve taylor NOT A STATEMENT, OFFICIAL OR OTHERWISE, OF THE HEWLETT-PACKARD COMPANY.