Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem using PCL's concatenated codes such as with landscape?

Status
Not open for further replies.

dbMark

Programmer
Apr 10, 2003
1,515
US
I encountered a problem when sending a series of concatenated PCL codes from a DOS database program to HP printers such as 4100 and 9000. The specific circumstances are described below. Since different programs use diferent syntax for the Escape code (character 27), I will refer to it here simply as {esc}.

This PCL code did set landscape but failed to set subsequent commands for spacing (fixed), pitch (15 CPI), bold (on), typeface (Courier):

Code:
{esc}+"&l1o(s0p15h3b4099T"

Once I separated the landscape sequence from the other commands and gave both groups of commands their own Escape code, it all worked fine:

Code:
{esc}+"&l1O"+{esc}+"(s0p15h3b4099T"

Summary: Although PCL print commands can be concatenated together with only one Escape command at the beginning, sometimes you may need to separate the different "families" of commands into separate escape sequences in order for everything to work. In such cases they can still be placed together in a sequence but just give each "group" their own escape code prefix.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top