Default windows printer

Hi ,

I need to know in Smart + WebClient what the standard windows printer is.

Any ideas ?

This will do the job:

var $printService = new Packages.javax.print.PrintServiceLookup.lookupDefaultPrintService();
	var $printerName = $printService.getName();
application.output($printerName)

For the web: default printer where?
Of the client pc where the browser is? That will not work.

The code from mr Boegem will give you for a webclient the printers on the server.

Marc and Johan,

Thanks for the info/help !

Regards,

lwjwillemsen:
I need to know in Smart + WebClient what the standard windows printer is.

Sorry Lambert, I missed the WebClient part as we’re more involved in SmartClient development…
Anyway: you got your answers :-)