HELP! with HP PCL (AREV Specific)
At 06 JAN 1999 11:27:42AM Andre Karobkoff wrote:
I submitted a post yesterday asking for help with printing
a character from an R/BASIC program that would be faded or
"watermarked". A response was posted to look on the HP web
site for the correct escape sequence, which I did and found
the sequence but the character still does not print faded.
I am defining the sequences as follows:
SEQ1=CHAR(27) : '(s0p1.0h1s0b4120T' ← This is Letter Gothic Italic
SEQ2=CHAR(27) : '(s-4B' ← this is HP's seqeunce for Extra Light
My print statement is as follows :
PRINT SEQ1 : SEQ2 : '1' ← should this not print the number one in
letter gothic,extra light ????
Please Help ! ! !
[email protected] or please post an answer here.
At 06 JAN 1999 12:24PM Matt Sorrell wrote:
Andre,
Your definitions were:
SEQ1=CHAR(27) : '(s0p1.0h1s0b4120T' ← This is Letter Gothic Italic
SEQ2=CHAR(27) : '(s-4B' ← this is HP's seqeunce for Extra Light
Your print statement was:
PRINT SEQ1 : SEQ2 : '1' ← should this not print the number one in
letter gothic,extra light ????
The problem comes with the way you tried to combine the print commands. The printer didn't understand what you were trying to do.
If you would redefine your two PCL commands into the following PCL command, it should work:
SEQ1=CHAR(27) : '(s0p1.0h1s0b4120t-4B'
My HP PCL book lists the following three rules form combining printer commands:
1) The first two chars after the escape sequence (CHAR(27)) must be the same in all printer commands you want to combine.
2) All alpha chars within the combined printer commands must be lowercase except the final letter. The final char in the printer command must always be uppercase tot ell the printer the commanhd sequence is complete.
3) Printer commands take effect as your software encounters them (from left to right). Be sure to combine printer commands in the order in which the printer should perform them.
One last note, I'm not sure Extra Light is what you're looking for. That's just going to make a very light pen weight font. I don't think it will actually 'watermark' it, but may be close enough for what you need.
HTH,
Matt Sorrell
At 08 JAN 1999 12:35AM Ted Archibald - Parsec Sys wrote:
Hi
I do a lot of HP printing and I tend to try to keep it simple.
You know the KISS philosophy.
Each PCL command that I write is ESC + command (ending in Cap letter)
Since I am not squeezed for space I do not have to try to save
space by piggy backing commands of similar headers.
I think the origin of the piggy-back syntax was to squeeze lots of
logic into small fields that the older word processors and lotus used to to attach PCL commands to WP high level tokens. Space was typically 16 bytes if that.
Maybe this will help
Cheers