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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PCL Syntax for inserting a CR-LF with the "LB" command 1

Status
Not open for further replies.

MightyJoe99

Programmer
Jun 8, 2006
1
US
I am using PCL5 with an HP 3800 Printer. I am trying to place a multi-line label in hp-gl/2 mode onto my form. If I use the "LO" command and also use a CR-LF with the "LB" command at the end of the line the text will automatically be aligned on the next line. What is the synatax for inserting the CR-LF?
 
I'm not sure what you are asking with "what is the syntax for inserting the CR-LF?".

The LO (Label Origin) command sets the initial cursor position, and also sets the Carriage Return point.

The Carriage Return point is the X-coordinate position to which subsequent CarriageReturn control codes (amongst others) within subsequent LB command(s), will move the cursor to.

The LB (Label) command (which does not itself reset the Carriage Return point) can include various control characters, such as:

CarriageReturn: the character with code decimal 13, hexadecimal 0d.

LineFeed: the character with code decimal 10, hexadecimal 0a.

The DT (Define Label Terminator) command defines the label terminator character, and whether it (if set as a printable character) should be printed or not; default terminator is the ETX control code (decimal code 3, hexadecimal 03).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top