Reputation: 3548
In my java printing program, when I print any document using Java, the document prints in the "name of Java Printing" instead of my Application name. How do I show the name of my application in the printing details window of the printer? Any help will be appreciated.
Upvotes: 1
Views: 181
Reputation: 22972
You should use setJobName(String name)
which sets the name of
the document to be printed.
printJOB.setJobName("YourPrintName");//You can specify your appName here
Upvotes: 2