90
closePrinter
Ends communication with the printer.
Syntax
public void closePrinter() throws EposException
Exceptions
When processing fails, EposException is thrown with one of the following error values.
Example
Error status Description
ERR_ILLEGAL This API was called when communication had not started yet.
ERR_PROCESSING Could not execute process.
ERR_FAILURE An unspecified error occurred.
Print printer = new Print();
try {
printer.openPrinter(Print.DEVTYPE_TCP, "192.168.192.168");
///Process///
printer.closePrinter();
} catch (EposException e) {
int errStatus = e.getErrorStatus();
}