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):
Once I separated the landscape sequence from the other commands and gave both groups of commands their own Escape code, it all worked fine:
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.
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.