static string GetErrorStr(int PrintErr) { switch (PrintErr) { case 102: return "Printer Not Ready"; case 104: return "Not Receiving"; case 106: return "Not Transmitting"; case 113: return "MAC Length Parity Error"; case 120: return "Invalid Frame Received"; case 121: return "NS != VR"; case 122: return "NR != VS"; case 123: return "Receive Length Error"; case 124: return "CRC Error"; case 200: return "Frame Reject"; case 201: return "Invalid Frame Rejected"; case 202: return "NR Mismatch"; case 203: return "NS Mismatch"; case 204: return "Disconnect"; case 210: return "Bind Error"; case 221: return "Invalid PLDU"; case 222: return "Head Jam"; case 223: return "Paper Out"; case 224: return "Low Voltage"; case 225: return "Over Voltage"; case 226: return "Low Battery"; case 227: return "Lid Open"; case 228: return "Print Head Error"; case 229: return "Paper Feed Error"; case 1001: return "Command Error"; case 1002: return "Data Error"; case 1003: return "Font Error"; case 1004: return "Global Parameter Error"; default : return "Unknown"; } }
If an error occurs when you run the application, the application calls an exception handler and displays a descriptive error message.
Next » Tutorial Part 5
Back « Tutorial Part 3