Results 1 to 11 of 11
  1. #1
    absmarty is offline Member
    Join Date
    Jul 2010
    Posts
    3
    Rep Power
    0

    Arrow how to count number of pages printed?

    i want to create a program in java which counts the number of prints taken from a printer.....is this possible:confused:.... please hel!!:cool:

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,457
    Rep Power
    25

    Default

    prints taken from a printer
    I don't understand this question. A printer is an output device.
    Are you asking if there is a way to ask the printer if the user has taken a print out from its output tray?

  3. #3
    Sno's Avatar
    Sno
    Sno is offline Senior Member
    Join Date
    Apr 2010
    Posts
    196
    Rep Power
    5

    Default

    maybe he is sending a job to the printer, but wants a return for the amount of pages the printer is about to print?
    :rolleyes: ~ Sno ~ :rolleyes:
    '-~ B.S. Computer Science ~-'

  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
    absmarty is offline Member
    Join Date
    Jul 2010
    Posts
    3
    Rep Power
    0

    Red face

    i want to count the number of pages, that have been printed by a printer..
    i have a lexmark printer and it doesn't support continuous feed option....
    we use this printer for office work... and hence i want the total amount af pages that have been printed!:(

    is this possible?
    Last edited by absmarty; 07-22-2010 at 12:36 PM.

  6. #6
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,457
    Rep Power
    25

    Default

    How would a java program be able to get that information? Is there a way that all print requests would have to go thru one java program?

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

  8. #8
    oranjeBoven is offline Member
    Join Date
    Feb 2008
    Posts
    2
    Rep Power
    0

    Default Use SNMP

    Typically all hardware expose attributes via the SNMP protocol. Not sure if someone has developed a Java app that requests the number of pages printed by a printer. But most modern printers do count the number of pages printed and these should be readable via the SNMP protocol. Check this site out: SNMP4J - Free Open Source SNMP API for Java

  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

    If you can access printer pool, in almost all printers have those information.

    Seems a good API, thanks for sharing.

  10. #10
    absmarty is offline Member
    Join Date
    Jul 2010
    Posts
    3
    Rep Power
    0

    Default Re: how to count number of pages printed?

    What i was trying to do is, When i give a print command through an application such as MS word, my printer starts a particular process...
    is there a method to recognize when that process is initiated?... (provided i am currently running the Java program).. so that i can just increment a counter whenever that print process is initiated, and hence i might be able to keep a track of pages printed or at least the number of time print command is executed.

  11. #11
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,457
    Rep Power
    25

    Default Re: how to count number of pages printed?

    Are you still working on this project after over a year?

Similar Threads

  1. Count number of digits in string using scanner
    By wendysbiggy in forum New To Java
    Replies: 35
    Last Post: 01-20-2010, 05:11 AM
  2. Array count number Occurances
    By gwithey in forum New To Java
    Replies: 2
    Last Post: 04-17-2009, 08:34 PM
  3. Replies: 4
    Last Post: 03-28-2009, 04:58 PM
  4. Replies: 8
    Last Post: 02-04-2009, 08:55 PM
  5. Verify if a file as been, for sure, printed
    By pjmorce in forum Advanced Java
    Replies: 0
    Last Post: 11-20-2008, 10:45 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
  •