0

How can I connect my java program with my printer

16th Jun 2021, 4:08 PM
Rasul Sonal
Rasul Sonal - avatar
4 Respuestas
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
16th Jun 2021, 4:56 PM
The future is now thanks to science
The future is now thanks to science - avatar
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();
16th Jun 2021, 4:34 PM
The future is now thanks to science
The future is now thanks to science - avatar
0
Yes I need to get output on printer
16th Jun 2021, 4:42 PM
Rasul Sonal
Rasul Sonal - avatar
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.
4th Oct 2022, 8:28 AM
Jimmy Wick
Jimmy Wick - avatar