Results 1 to 2 of 2
  1. #1
    KaitoSama is offline Member
    Join Date
    Nov 2010
    Posts
    1
    Rep Power
    0

    Default Printing locally on the client

    Hi

    I'm developing an app using JSF 1.2. I'd like the client to print locally i.e. the printer used is the default printer of the client be it the one directly connected to their computer or a network printer.

    Whenever the user clicks the print button, the report is automatically printed without any further interaction.

    I tried to use PrintServiceLookup to look for available printers, but it returns only the printer connected to the server.

    Any idea to make this work?

    Thanks

    Adi

  2. #2
    madnaelo is offline Member
    Join Date
    Dec 2010
    Posts
    8
    Rep Power
    0

    Default

    did you try to print through javascript?

    thats amazingly simple. forexample:

    <h:commandButton value='Print' onclick='window.print();' />

    Did that help?

Similar Threads

  1. Replies: 2
    Last Post: 05-07-2009, 05:06 AM
  2. Problems getting jar file running locally
    By edpfister in forum Java Applets
    Replies: 2
    Last Post: 03-09-2009, 09:01 PM
  3. Not able to generate excel file locally
    By wickedrahul9 in forum Advanced Java
    Replies: 4
    Last Post: 10-23-2008, 12:17 PM
  4. Replies: 1
    Last Post: 10-05-2008, 04:12 PM
  5. Identify Client in Socket Client Server Application
    By masadjie in forum Networking
    Replies: 1
    Last Post: 12-20-2007, 10:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •