vendredi 27 février 2015

Java 7 print to a Printer



I have a text file or data in a JFormattedTextField I would like to print to a printer I have tried ever code line on the net I could find no results System is W7 pro java 7 & 8 installed and working printer Cannon mp560


I have set the DocFlavor.INPUT_STREAM.AUTOSENSE and verified that the printer is found FileInputStream is correct path to the file


My real goal is to be able to capture data in the JFormattedTextField and print This is NOT a web application it is stand alone on a desktop computer


would like to use javax.print Class NOT awt and I do not want a graphic routine




Aucun commentaire:

Enregistrer un commentaire