Results 1 to 11 of 11
  1. #1
    kurenai is offline Member
    Join Date
    Jun 2008
    Posts
    9
    Rep Power
    0

    Default send documents to print queue

    i think this is reasonably advanced....

    i have a list of the physical locations and the amount of each, of a bunch of doc files that i want to send to a printer on the network. does anyone know how i can do this? ive had a little search and still no idea.

    thanks guys.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  3. #3
    Niveditha's Avatar
    Niveditha is offline Senior Member
    Join Date
    May 2008
    Posts
    307
    Rep Power
    7

    Default

    yes eranga is right.

    You can use Java Print Service API that will do your job, check this link for more details and sample code
    Java Print Service API User Guide: -
    To finish sooner, take your own time....
    Nivedithaaaa

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  5. #5
    kurenai is offline Member
    Join Date
    Jun 2008
    Posts
    9
    Rep Power
    0

    Default

    yes!thanks for the responses guys im going to have a play. be back soon.

  6. #6
    kurenai is offline Member
    Join Date
    Jun 2008
    Posts
    9
    Rep Power
    0

    Default

    guys im having a little trouble....
    i dont want to print anything thats on the screen
    i dont want to even open the files that i want to print.

    i just want to send the print job for that file ( i have file path)
    and the amount i want to print. to the printer which lets say is called "the printer"

    i have had a look at the API and im still having difficulties.

    ... oh and if it helps i have the printer name that i want to print to.
    Last edited by kurenai; 06-25-2008 at 04:49 PM.

  7. #7
    Niveditha's Avatar
    Niveditha is offline Senior Member
    Join Date
    May 2008
    Posts
    307
    Rep Power
    7

    Default

    Can u tell us what type of difficulties r u facing?
    To finish sooner, take your own time....
    Nivedithaaaa

  8. #8
    kurenai is offline Member
    Join Date
    Jun 2008
    Posts
    9
    Rep Power
    0

    Default

    my biggest difficulty is that i dont know how to do it.

  9. #9
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    You got all details need to do your application. Very simple explanations with example codes. If you are still saying that you don't know how to do it, there is no point to helping you.

    On those example you have to change just few lines. Nothing much to do. I already test few of them working extremely fine.

  10. #10
    Niveditha's Avatar
    Niveditha is offline Senior Member
    Join Date
    May 2008
    Posts
    307
    Rep Power
    7

    Default

    :) No comments...
    Totally do agree with Eranga as the examples are very simple, if u know what exactly u want in ur application u just have to do some minor changes...
    To finish sooner, take your own time....
    Nivedithaaaa

  11. #11
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Yes, only few lines. :) May be our friend lazy to read that page and looking simple code here. I don't know why he not doing a test, just need a copy-paste. ;)

Similar Threads

  1. Print the text file and print preview them
    By Java Tip in forum java.awt
    Replies: 0
    Last Post: 06-22-2008, 11:04 PM
  2. Using a queue
    By Krmeus in forum New To Java
    Replies: 0
    Last Post: 12-10-2007, 03:38 PM
  3. Internet Explorer is unable to open Office documents from an SSL Web site
    By pramod@netedgecomputing.c in forum Web Frameworks
    Replies: 0
    Last Post: 07-19-2007, 07: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
  •