-=> Martin Pustilnik schreef op 11 Nov 97 21:07:52 aan Ron Tuynman over
Print codes for HP..<=-
MP>> somebody have the 'print codes' for a HP 500 to 600 printers?
RT> ...Which ones do you need?
MP> 1)change fontsize <-- more priority
...CHR( 27 ) + "(s#V" //---Where # is pointsize 1/72 inch
...CHR( 27 ) + "(s#H" //---Where # is pitch (chrs/inch)
When you want to change both pointsize and pitch, you FIRST send the
pitch-code, THEN the pointcode.
MP> 2)change fontstyle <-- less necesary
...No problem:
CHR( 27 ) + "(s0S" //--- Plain
CHR( 27 ) + "(s1S" //--- Italic
CHR( 27 ) + "(s3B" //--- Bold
CHR( 27 ) + "(s0B" //--- Plain
CHR( 27 ) + "&d1D" //--- Underline (single, including spaces & tabs)
CHR( 27 ) + "&d2D" //--- Underline (double, including spaces & tabs)
CHR( 27 ) + "&d3D" //--- Underline (single, excluding spaces & tabs)
CHR( 27 ) + "&d4D" //--- Underline (double, excluding spaces & tabs)
CHR( 27 ) + "&d@" //--- Underline OFF
CHR( 27 ) + "&l1O" //--- Landscape
CHR( 27 ) + "&l0O" //--- Portrait
Orientationcodes schould be sent AFTER fontsize- and pitchcodes. Just
experiment a little with it.
Cu,
Ron
--- Blue Wave v2.12
---------------
* Origin: SYNCNET BBS - +31-35-6237178/6239318 [ISDN] (2:283/1)
|