Select your printer model
Parameters are refined by the selected printer.
<type>onxmlresult</type>
Acquires the result of the print request given by the <type>print</type> element and notifies the application of the result.
Response
Child element |
Data type |
Description |
---|---|---|
printjobid |
string |
Print job ID |
resultdata |
string |
Print result |
Sample program
- Response to Request A
-
<data> <type>onxmlresult</type> <resultdata> <response success="true"/> </resultdata> </data>
- Response to Request B
-
<device_data> <device_id>local_printer</device_id> <data> <type>onxmlresult</type> <printjobid>ABC123</printjobid> <resultdata> <response xmlns="http://www.epson-pos.com/schemas/2011/03/epos-print" success="true" code="" status="252641302" battery="0" /> </resultdata> </data> </device_data>
- Response to Request A (with spooler function enabled)
-
<device_data> <device_id>local_printer</device_id> <data> <type>onxmlresult</type> <printjobid>123</printjobid> <resultdata> <response xmlns="http://www.epson-pos.com/schemas/2011/03/epos-print" success="true" code="" status="2" battery="0" /> </resultdata> </data> </device_data>
- Response to Request C
-
<device_data> <device_id>local_printer</device_id> <data> <type>onxmlresult</type> <printjobid>123</printjobid> <resultdata> <response xmlns="http://www.epson-pos.com/schemas/2011/03/epos-print" success="true" code="" status="252641302" battery="0" /> </resultdata> </data> </device_data>
Supplementary explanation
- Refer to <response> for details of the print result acquired in the resultdata child element.
- If the application does not specify the print job ID, the printer issues the print job ID instead.
- When the spooler function is enabled, the <response> of this element returns “true” to ‘success’, “(null string)” to ‘code”, “0x00000002”
or “0x80000000” to ‘status’, and “0” to ‘battery’ respectively.
The actual print result can be acquired by requesting for it with the print job ID specified. - No <type>onxmlresult</type> is notified if a communication error occurs.
To notify the disconnection event, implement the <reconnect>. - If a communication error occurs and it is deemed that no recovery will take place,
notify <disconnect>.
Since no <type>onxmlresult</type> is notified in this case, detect print failures in <disconnect>.
Quick Access
- [Name]
- [Format]
- [Range]
- [Description]
- [Notes]
ePOS-Device XML includes patented or patent pending functions. The contents must not
be disclosed to third parties.
- Introduction
- help
- Message
- CommunicationBox Messages
- Device Messages
- DeviceHubTerminal
- BarcodeScanner
- Printer
- <type>print</type>
- <type>onxmlresult</type>
- <epos-print>
- <response>
- <text>
- <feed>
- <image>
- <logo>
- <barcode>
- <symbol>
- <hline>
- <vline-begin>
- <vline-end>
- <page>
- <area>
- <direction>
- <position>
- <line>
- <rectangle>
- <cut>
- <pulse>
- <sound>
- <command>
- <layout>
- <recovery>
- <reset>
- <batch-begin>
- <batch-end>
- <rotate-begin>
- <rotate-end>
- HybridPrinter
- <type>lock</type>
- <type>unlock</type>
- <type>print</type>
- <type>onxmlresult</type>
- <type>slipwaitinsertion</type>
- <type>slipprint2</type>
- <type>slipcancel</type>
- <type>endorsewaitinsertion</type>
- <type>endorseprint2</type>
- <type>endorsecancel</type>
- <type>validationwaitinsertion</type>
- <type>validationprint2</type>
- <type>validationcancel</type>
- <type>micrread</type>
- <type>micrcleaning</type>
- <type>micrcancel</type>
- <type>eject</type>
- <type>onreceive</type>
- CustomerDisplay
- Keyboard
- POSKeyboard
- MSR
- SerialDevice
- Storage
- OtherPeripheral
- Appendix
- List of KeyCode
- Supported Printers by XMLs
- ePOS-Device XML Functions That Can Be Used
- List of Supported Elements
- Printer-specific Support Information
- TM-T20II-i
- TM-T70-i
- TM-T82II-i
- TM-T83II-i
- TM-T88V-i
- TM-T88VI-iHUB
- TM-U220-i
- TM-U220IIB-i
- TM-T70II-DT
- TM-T70II-DT2
- TM-T88V-DT
- TM-T88VI-DT2
- TM-H6000IV-DT
- TM-H6000V
- TM-H6000VI
- TM-m30
- TM-m30II
- TM-m30II-H
- TM-m30II-NT
- TM-m30II-S
- TM-m30II-SL
- TM-m30III
- TM-m30III-H
- TM-m50
- TM-m50II
- TM-m50II-H
- TM-T88VI
- TM-T88VII
- TM-L100
- TM-m10
- TM-P20
- TM-P60II (Receipt)
- TM-P60II (Peeler)
- TM-P80
- TM-T20
- TM-T20II
- TM-T70
- TM-T70II
- TM-T82II
- TM-T83II
- TM-T88IV
- TM-T88V
- TM-T90
- TM-L90
- TM-U220
- TM-U220II
- TM-H6000IV
- Usage restriction by firmware version