Thursday, April 21, 2011

PrintServiceLookup.lookupDefaultPrintService() returns null

PrintServiceLookup.lookupDefaultPrintService() returns null as i have printer installed and set to default printer.

if i am using this in simple program it works fine. but when i try to use it in my applet based program it returns null to me.

Please send me some good solution for this problem.

Regards: Babar

From stackoverflow
  • You must change the security settings for java applets first. By default, java applets cannot print.

    Muhammad Babar Nazir : i have changed the settings and also printing using the Printable Interface, but now i have to use PrintServiceLookup.lookupDefaultPrintService() it returns null to me.

0 comments:

Post a Comment