Printer Tags

Use Printer tags to specify the printer that should be used for printing or send data to the printer by including the data in Printer META tags.

Printer Setup

Printer setup tags specify the printer to use for printing. Use one of the following Print_Setup tags:

Print_Setup_TP

Selects the IP address and port of the printer for TCP printing. The format is address:port.

Print_Setup_SP

Selects the serial printer using the number in the content value.

Print_Setup_IP

Selects the IRDA printer using the number in the content value.

Print_Setup_BP

Selects the Bluetooth printer using the number in the content value.

Print_Setup_NP

Selects the integrated printer for devices that include one. The content value is not used.

Use the following content values to select the printer type for Serial, Bluetooth, or IRDA printers:

0

PS1000

1

PS1001

2

PS1004

3

LINEPRT (Generic 9600 bps serial)

4

PDDUMB (Used for Data South)

5

COMTEC (5022)

6

MONARCH (Monarch PathFinder)

7

RASCAL (Monarch 9450)

8

RENEGADE (Monarch 9490)

9

COMTECPS

10

CODECOUR

11

COMTEC RF

12

COMTEC RF 9600

50

User Defined Printer

For example:

<meta http-equiv="Print_Setup_TP" content="192.168.1.59:7429">

Printing Data

Use the Print_Continue and Print_Finish action names to specify print data. The print data is in the action type of these META tags. The print data in the tag should all be on the same line in the HTML code and should not be more than 1024 characters in length. If you want additional characters, use a new Printer tag. In addition to standard characters, you can use the following:

\r to specify a return character

\n to specify a newline character

\t to specify a tab character

\\ to specify a backslash character

\## or \x## to specify any other character, where ## is replaced with a two-digit hexadecimal number

Print_Continue should be used for all but the last section of print data, and Print_Finish should be used for the last section of print data. The following tags are alternatives to Print_Finish: Print_Done, Print_Final, PLSeriesLabel_Print and ZebraLabel_Print.

The META tag Print_Callback can be used to check if the printing completed successfully. The argument will be 0 if the printing was successful, or a non-zero number if the printing failed. The following tags are alternatives to Print_Callback:Print_Complete, ZebraLabel_Complete and PLSeriesLabel_Complete.

For example:

<meta http-equiv="Print_Continue" content="\22First Line\22\r\n">

<meta http-equiv="Print_Continue" content="\22Middle\22\r\n">

<meta http-equiv="Print_Finish" content="\22Last Line\22\r\n">

<meta http-equiv="Print_Callback" content="printresult.htm&status=%s"

 

Privacy and Legal