Results 1 to 4 of 4
  1. #1
    pjmorce is offline Member
    Join Date
    Nov 2008
    Posts
    17
    Rep Power
    0

    Default Control printing queue

    Hello

    I have made a Java application which sends a set of files (which are on a directory) to a printer.
    I am using java printing api.
    Everything works fine.

    I have a question:
    If the number of files is big and/or the files have several pages, since my application sends it for printing without waiting, is there a possibility to loose some files?

    I mean, imagine that i send 100 files for printing. Each one with 100 pages. What happens if the printer has no paper for example? the job queue will maintain the files to be printed?

    Is there a way in Java to see if a printer has more than X jobs for printing? (so I can wait until this number decrease)

    Thanks

    Regards

  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
    19

    Default

    Once you send information about all pages need to print, all information are store in printer poll memory. Every time before print a paper, it's check paper tray for availability. If not it warns and wait until you request again, from the printer, not from your application.

  3. #3
    pjmorce is offline Member
    Join Date
    Nov 2008
    Posts
    17
    Rep Power
    0

    Default

    Ok, thanks for your help.

  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
    19

Similar Threads

  1. Queue List
    By nahid in forum Advanced Java
    Replies: 4
    Last Post: 10-08-2008, 08:50 AM
  2. control app width based on certain control
    By thebillybobjr in forum SWT / JFace
    Replies: 0
    Last Post: 05-15-2008, 04:52 PM
  3. Declaring a Queue
    By rhm54 in forum New To Java
    Replies: 1
    Last Post: 03-21-2008, 05:02 AM
  4. Help with queue array please!!
    By vmcg105 in forum New To Java
    Replies: 1
    Last Post: 03-08-2008, 07:03 PM
  5. Using a queue
    By Krmeus in forum New To Java
    Replies: 0
    Last Post: 12-10-2007, 03:38 PM

Posting Permissions

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