richard@hpfcdc.HP.COM (Richard Artz) (05/31/90)
RE: / atkins@marlin.NOSC.MIL (Hugh T. Atkins) / 4:04 pm May 29, 1990 / Hugh, You didn't say what,if anything, you get from the printer. The printer should be in raw-mode (lp -oraw). You are right that there must not be any CR/LF in the data stream. The escape-sequence for each row includes the number of bytes in that row. I'd put a form-feed at the end, before the second reset. I've played with the rasters, we have scanned images of our users that print on the banner-pages :-) I don't see anything else wrong with your example -- but then I'm at home and can't check the manual. You might write the data to a file and then dump the data to check the content. Maybe someone else will see something I missed. Richard Artz / GSY Learning Products / 303-229-2036 / richard@hpfcww.fc.hp.com Hewlett-Packard / MS11 / 3404 E. Harmony Road / Fort Collins, CO 80525-9599 This response does not represent the official position of, or statement by, the Hewlett-Packard Company. The above data is provided for informational purposes only. It is supplied without warranty of any kind.
steve-t@hpfcso.HP.COM (Steve Taylor) (06/01/90)
/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.