Results 1 to 4 of 4
Thread: Control printing queue
- 11-05-2008, 12:56 PM #1
Member
- Join Date
- Nov 2008
- Posts
- 17
- Rep Power
- 0
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
- 11-06-2008, 05:42 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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.
- 11-07-2008, 08:25 AM #3
Member
- Join Date
- Nov 2008
- Posts
- 17
- Rep Power
- 0
Ok, thanks for your help.
- 11-07-2008, 08:57 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Similar Threads
-
Queue List
By nahid in forum Advanced JavaReplies: 4Last Post: 10-08-2008, 08:50 AM -
control app width based on certain control
By thebillybobjr in forum SWT / JFaceReplies: 0Last Post: 05-15-2008, 04:52 PM -
Declaring a Queue
By rhm54 in forum New To JavaReplies: 1Last Post: 03-21-2008, 05:02 AM -
Help with queue array please!!
By vmcg105 in forum New To JavaReplies: 1Last Post: 03-08-2008, 07:03 PM -
Using a queue
By Krmeus in forum New To JavaReplies: 0Last Post: 12-10-2007, 03:38 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks