Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2007

Tip: Looking for answers? Try searching our database.

Monitor Events of Printer in a PC's Network

Thread view: 
julielaurek@gmail.com - 26 Jul 2007 22:58 GMT
Hey guys!

Sorry if you read something similar to this from me twice; I thought I
had posted it a few days ago but I can't even find it on profile. But
here goes:

Let's say you have 3 printers that you can print to from this one
laptop you have. Using the java print API you can easily get all the
names of your printers using lookupPrntServices(null, null). You
select one of those printers. Everything up t othis point was done
using java code.

Now, you'd like to normally print a document, without using java. So
you ctrl-p from a different window and you start printing, normally.

I'd like to use Java code at this point to monitor printing events
from this printer, like rate of printing, time of start, maybe even
anticipated time of end... that kind of stuff... So far, after
thoroughly befirending Google, I have not been able to find a way to
do so with the java print api. Does anyone happen to know if it's
first of all possible to do that, and next if I could do so in Java or
what language I could use otherwise? I really only (have begun to)
know Java, so I was looking into using JNI but I don't know what
language to even start from if I want to follow that line of
thought...

s.o.s... =)

JL
Joshua Cranmer - 26 Jul 2007 23:56 GMT
> I'd like to use Java code at this point to monitor printing events from
> this printer, like rate of printing, time of start, maybe even
[quoted text clipped - 9 lines]
>
> JL

I doubt that could be done. First of all, printing is amazingly low-level
API; the main high-level API I've seen is "choose a printer, change some
settings, and print." From a cursory examination of the Windows API, it
does not appear to have functions to do this. However, if you're using
*nix, the CUPS API might have functions that does what you want.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.