I have printed this way
FileWriter imp = new FileWriter("COM2");
while ((linea = br.readLine()) != null) {
imp.write(linea);
imp.write(0x0A);
}
Well now Im using the port COM2, I have a printer that receive a hex code and its response will back in type byte, I dont know how to do it with java. Somebody has done it before?
Thanks.
You could try using javax.print.attribute.standard.PrinterStateReason
This class is a part of the javax.print.* packages.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With