//printer.open("TSP700-mac-usb"); // TSP700 printer - mac - usb
//printer.open("TSP700-ethernet"); // TSP700 printer - ethernet
// claim exclsive usage of the printer object
printer.claim(1);
// enable the device for input and output
printer.setDeviceEnabled(true);
// set map mode to metric - all dimensions specified in 1/100mm units