0
How can I connect my java program with my printer
4 Respostas
0
First of all, I don't know java much and even I knew that I think I wouldn't find this from the sololearn tutorials.So here are some resources you can get:
https://stackoverflow.com/questions/8841068/java-printing-program-output-to-a-physical-printer
https://www.techrepublic.com/article/java-qa-getting-output-to-the-printer/
https://docs.oracle.com/javase/tutorial/2d/printing/printable.html
0
Do you want to print the output of your java program on a printer or something else?
If you want to print in console or terminal:
you have to use System.out.println();
0
Yes I need to get output on printer
0
This is the most convenient method to locate a printer. But, the problem is that here we are assuming that the printer will be able to print the output correctly by selecting the platform native default print service rather than the one specific printer installed. It gives no choice to select the printer that supports application-specific needs. Therefore, to find out all the print services available, we may use one of two other alternative static functions defined in the PrintServiceLookup class.