Intermec 6200 Reference Guide

Page of 410
SECTION 3
Supporting Windows Applications
PEN*KEY
R
 6200/6300 Hand-Held Computer Programmer’s Reference Guide    3-35
7. Use 
EndPage(...)
 to finish off.  This flushes everything that was printed to
the printer and perform a form feed.  This puts you at the top of the next
page and, if done right, Windows is reset, so the next 
StartPage(...)
 
gets
things going again.
It is best to print something on the page regardless of whether the user said the
page was correct.  This way the page is valid only if the valid message is on the
page.  Remember that errors can occur while the system is trying to print the
void message and the void message may not actually end up on the paper.  If the
absence of a void message means that it is valid, an invalid page may be
accepted as valid if the void message can not be printed.
Windows Error Codes/Messages
The NPCP printer driver can receive these error codes:
Error # Error Code
Error Message
Explanation
102
PNRDY
Printer Not Ready
Check Connection
Printer is not connected properly
104
RXTMO
Not Receiving
Check Connection
Printer stopped sending data in midst of packet
106
TXTMO
Not Transmitting
Check Connection
Printer stopped receiving data in midst of packet
111
BADADR
MAC Address Error
Printer rejected MAC address sent in packet
112
GAPERR
MAC Interchar Gap Error Gap between bytes too long
113
LSRPE
MAC Length Parity Error Actual packet size did not match declared packet
size
120
IFTS
Invalid Comm Frame
Frame sent in wrong sequence
121
NS_NE_VR
NS <> VR Error
Received NS did not match expected NR
122
NR_NE_VS
NR <> VS Error
Received NR did not match expected NS
123
RLENERR
Receive Length Error
Actual packet size did not match declared packet
size
124
MAC_CRCERR CRC Error
Invalid CRC
200
FRMERR
Frame Reject Error
Frame rejected
201
FRMERR_IF
Invalid Frame
Frame received invalid for current mode
202
FRMERR_NR NR Mismatch
NR did not match
203
FRMERR_NS
NS Mismatch
NS did not match
204
NDMERR
Disconnect Error
Printer is in NDM
205
FRMERR_SF
Frame Too Short
Frame too short
206
FRMERR_LF
Frame Too Long
Frame too long
210
BINDERR
Bind Error
Invalid bind sequence
221
IPLDUR
Invalid PLDU
Invalid Presentation Layer Data Unit
255
DEVERR
Device Error
Device error occurred
XXX
Unknown Error
Unrecognized error occurred
3. Windows
Applications