Created
October 25, 2011 23:02
-
-
Save maleficarum/1314679 to your computer and use it in GitHub Desktop.
Print ticket
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DocFlavor flavor = DocFlavor.BYTE_ARRAY.AUTOSENSE; | |
PrintService service = PrintServiceLookup.lookupDefaultPrintService(); | |
DocPrintJob pj = service.createPrintJob(); | |
byte[]bytes =cadena.getBytes(); | |
Doc doc = new SimpleDoc(bytes, flavor,null); | |
try{ | |
pj.print(doc,null); | |
}catch(Exception e){ } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment