Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Java/Printers question

  • 18-10-2001 2:34pm
    #1
    Registered Users, Registered Users 2 Posts: 7,468 ✭✭✭


    How do I get a list of all the network printers available to a Windows 2000 machine, from Java? I'm stumped.

    :confused:


Comments

  • Closed Accounts Posts: 1,322 ✭✭✭phobos


    Phil I know what you are looking for, but unfortunately I don't know the answer either. But here is a link to a pretty good tutorial on how Java handles Printing. Perhaps somewhere in the text it will reveal a sollution to your problem (I didn't read it).

    http://www.javaworld.com/javaworld/jw-10-2000/jw-1020-print_p.html

    HTH

    PS: Welcome to IJUG!! ;-)

    ;-phobos-)


  • Registered Users, Registered Users 2 Posts: 932 ✭✭✭yossarin


    ...Java does not support printer discovery -- obtaining a list of available printers and their features on a given computer. Available printers can either be local or networked. When using the API, no way exists for obtaining a printer list programmatically; only if the print dialog is displayed can the user select a printer. This is a feature that Sun, which is adhering to the Internet Printing Protocol, will address in the next version of Java (1.4).


    the printers seem to have to be setup on the machine in question

    more detail@ http://java.sun.com/printing/

    or in a lecture
    you might have some luck with
    http://java.sun.com/j2se/1.4/docs/api/javax/print/PrintServiceLookup.html in the javax.print package

    if you find anything interesting tell us


  • Registered Users, Registered Users 2 Posts: 7,468 ✭✭✭Evil Phil


    Right, the severe limitations placed on me were, it's Java 1.1, it's an applet (running on a corporate intranet). So my solutions is to pass down the printers available to the webserver to the applet using XML. Seems the easiest and the boss likes it. (phew!)


Advertisement