A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Android Security Essentials Live Lessons
this week in the
Other JSE/JEE APIs
Java print Api couldnot find network printer
Joined: Mar 13, 2006
Apr 13, 2006 01:45:00
am using the following
PrintService printService = PrintServiceLookup.lookupPrintServices(flavor, pras);
PrintService defaultService = PrintServiceLookup.lookupDefaultPrintService();
the "lookupPrintServices"&"lookupDefaultPrintService" classes couldnot find network printer.
if i connect local priner it is working please help me.
Joined: Aug 30, 2004
Apr 19, 2006 00:34:00
All you have to do is just add network printer to your local computer which is java application abide and give some specified printer service name.
PrintService  matchingServices = PrintServiceLookup.lookupPrintServices(flavor, aset);
matchingServices.getName(); by this sample you will get one of available printer service names.
I agree. Here's the link:
subject: Java print Api couldnot find network printer
Need to get IP Address
find the network printer print job names
find the PrinterJobQueue in and jobsnames in queue
find the network printers status and job names
No instance of PrintService is being created
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014