How to print a String to printer?
Hello
I just want to print in my printer (Epson 9 pins Black/White) little text.
But all the doc i have tell me how to print the graphic interface using that :
*********************************************************
PrinterJob printJob = PrinterJob.getPrinterJob();
printJob.setPrintable(myPrintPainterObject);
try{
printJob.print();
}catch(Exception PrintException){}
**********************************************************
Since the 'myPrintPainterObject' is a Printable interface, i can't make:
printJob.setPrintable("myStringHere"
Can some one help me?
Thanks for all;-)
Hello
I just want to print in my printer (Epson 9 pins Black/White) little text.
But all the doc i have tell me how to print the graphic interface using that :
*********************************************************
PrinterJob printJob = PrinterJob.getPrinterJob();
printJob.setPrintable(myPrintPainterObject);
try{
printJob.print();
}catch(Exception PrintException){}
**********************************************************
Since the 'myPrintPainterObject' is a Printable interface, i can't make:
printJob.setPrintable("myStringHere"
Can some one help me?
Thanks for all;-)