tags:

views:

241

answers:

1

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

A: 

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

ammoQ
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.
Muhammad Babar Nazir