I want to do the following in Java:
- I have a file path on local system( ” doc\reports.pdf”)
- give it to printer or set the printer to print this file at this location.
- pop print dialogue to the user and let him choose the properties for print.
- print the file.
I tried using java.print.awt package and tried jasperprint to do this but did not seem to have worked.
Using java.awt.Desktop print method you can print a File object using the native desktop printing facility.