HP Printing Colour from DOS

  • Thread starter Thread starter Andy Baker
  • Start date Start date
A

Andy Baker

Can anyone tell me how (if) I can print in coloured text, specifically red,
to an HP Officejet G85 printer from a DOS application. The application is
written in BASIC PDS 7.1 for DOS and the OS is MS DOS 6.22. I have tried
using a control sequence that I found on the HP web site for a HP Deskjet
series printer, by sending:
Chr$(27)+Chr$(42)+Chr$(118)+Chr$(49)+Chr$(50)+Chr$(83) before the text to be
printed, to set it to red, and Chr$(27)+Chr$(42)+Chr$(118)+Chr$(49)+Chr$(83)
afterwards, to set it back to black, but it doesn't have the correct effect.
A blank line is printed instead of the text, but it reverts to black
correctly after the second control sequence. Any help would be appreciated.

Andy Baker
 
Can anyone tell me how (if) I can print in coloured text, specifically red,
to an HP Officejet G85 printer from a DOS application. The application is
written in BASIC PDS 7.1 for DOS and the OS is MS DOS 6.22. I have tried
using a control sequence that I found on the HP web site for a HP Deskjet
series printer, by sending:
Chr$(27)+Chr$(42)+Chr$(118)+Chr$(49)+Chr$(50)+Chr$(83) before the text to be
printed, to set it to red, and Chr$(27)+Chr$(42)+Chr$(118)+Chr$(49)+Chr$(83)
afterwards, to set it back to black, but it doesn't have the correct effect.
....[snip]....

I have (at great effort but little expense) the HP PCL Technical Reference
Manual (on CD-ROM; less than $10), and your sequence is NOT the one shown
in my manual (which may or may not be the correct manual for YOUR printer
but it DOES work for my HP 3820! Try (I'm going to skip the CHR$ parts,
but I AM giving decimal values!):

27 69 (reset printer)
27 42 114 45 52 85 (set four planes)
27 42 118 49 52 83 (set composite black)

String them all together, put CHR$( and )+ in the appropriate places,
and, if your printer follows HP PCL, you should get "plack".

--Myron.
 
Back
Top