hi,
i use java printjob here to print the invoice data.i need to reverse feed the printer using java code to move up.I heard about ASCII character code to reverse feeding a char.And By the by how to Use those ASCII codes to reverse feed the lines.i need to line feeder here to jump to the previous line.The code i use for printjob is included below.
Thanks in Advance
Public void doPrintJob() {
PrintService defaultPrintService = PrintServiceLookup.lookupDefaultPrintService();
DocPrintJob printerJob = defaultPrintService.createPrintJob();
File psFile = new File("/tmp/postscriptexample.ps");
SimpleDoc simpleDoc = null;
try {
simpleDoc = new SimpleDoc(psFile.toURL(), DocFlavor.URL.AUTOSENSE,null);
} catch (MalformedURLException ex) {
ex.printStackTrace();
}
try {
printerJob.print(simpleDoc, null);
} catch (PrintException ex) {
ex.printStackTrace();
} finally {
File file = new File("/tmp/postscriptexample.ps");
file.deleteOnExit();
}
}