Java Printing Service (JPS) How to get printer status and pending jobs list

Hi,
I am trying to determine what is the current status of a printer in my computer as well as what is the list of pending printing jobs at any moment.
I want to monitor activity on a printer in my computer, so I can capture and log the jobs that are sent to my printer over time.
I would like to do so by monitoring the printer pending jobs list (if that can be retrieved through any java method) and make a log of changes in that list.
Any advice on how to get the list of pending jobs of a printer?
I checked the API and JobState class seems to be a descriptor of one single job... I suppose the method to retrieve a list of pending jobs in a printer would return an array of JobState objects... but I have not being able to find yet such method...
Thanks in advance,
JN

Moderator Action:
This post has been moved from the Java Programming,
to the ADF forum, for closer topic alignment.
*... and Comment:*
Get help from people that work with ADF.
They may have already done something like this.

Similar Messages

  • How to get system status and user status ?

    how to get system status and user status for the given production order?
    In which PP table we can
    find these?
    Thanks&Regards
    Satish

    Hi Ram,
    Use the FM "STATUS_READ" to read both the system and user statuses for an Order.
    Alternatively, the following tables store the user and system status info:
    JSTO- Status object information
    JEST- Individual Object Status
    Hope this helps.
    Let me know if u need further information.
    Regards,
    Sonal

  • How to get system status and user status of service order

    Hi,
    I want to show user status and system status for service order in my report and i am using CRM_ORDER_READ function module to read the status, but it is returning lot of status records, could anyone please suggest how to get the system status and user status for service order.
    I did not find any clue for how to get user status, i can see the user status when i open the transaction using CRMD_ORDER.
    Regards,
    Kamesh Bathla

    Hi,
      Go to CRM_JEST table give your service order guid and get the status, pass this status into TJ02. You will get the status of your order.
    Regards
    Srinu

  • How to get terminate status and number of all steps executed in Teststand

    Hi ! Could someone teach me,pls?
    1. Query:
        How can i get the sequence status of Terminated?
        Aim:
        I want to Terminate  sequence execution while something wrong happened, then i want to aquire the Terminated Staus.
        My action:
        i add a ActiveX API step into a callbacks file called SequenceFilePostStepFailure , but i can't get the value well 
    2. Query:
        How can i get the number of all steps executed in Cleanup of one sequence?
        Aim:
        I  want  to get the number of all steps executed include Setup, Main and Cleanup, after i terminating the sequence
        My action:
        call a variable from RunState.NumStepsExecuted . but it only the number of steps executed from Setup or Main or Cleanup , not all.
    Thank you in advance!
    Solved!
    Go to Solution.

    AllanXu wrote:
    Hi ! Could someone teach me,pls?
    1. Query:
        How can i get the sequence status of Terminated?
        Aim:
        I want to Terminate  sequence execution while something wrong happened, then i want to aquire the Terminated Staus.
        My action:
        i add a ActiveX API step into a callbacks file called SequenceFilePostStepFailure , but i can't get the value well 
    2. Query:
        How can i get the number of all steps executed in Cleanup of one sequence?
        Aim:
        I  want  to get the number of all steps executed include Setup, Main and Cleanup, after i terminating the sequence
        My action:
        call a variable from RunState.NumStepsExecuted . but it only the number of steps executed from Setup or Main or Cleanup , not all.
    Thank you in advance!
    1. Execution.GetStates() - look at the termination status. Termination is an execution specific state, not a thread state.
    2. You could use a PostStep callback and do the counting yourself (e.g. in a file global or station global variable), however there is a performance cost to poststep callbacks so it depends on whether or not it's worth the performance cost in your particular use case.
    Hope this helps,
    -Doug

  • Hi this is how to get into your old partner jobs list

    Hi there, I have worked out how to make the link to the old jobs in your partner portal work.
    1. log into your partner site.
    1. click on this link http://syd.worldsecuresystems.com/PartnerPortal/Support.aspx
    1. log in to the new Adobe help screen that comes up. You will then be in the new help zone.
    1. click on this link again http://syd.worldsecuresystems.com/PartnerPortal/Support.aspxand this time it will go to your old jobs list

    When you are in Expanded View, the menu option that shows is "Switch to Basic View".
    When you are in Basic View, the menu option that shows is "Switch to Expanded View".
    It's not a deft bit of UI design, but it is foolproof.
    Here -- from the User Manual.
    To switch to the expanded metadata overlay view in the Browser in filmstrip view, grid view, and list view 
    Do one of the following: 
    Choose View > Metadata Display, then choose Switch to Expanded View from the Browser section of the submenu (or press Shift-U).
    In the tool strip, choose Switch to Expanded View from the Browser section of the Metadata Overlays pop-up menu.
    Note: Switching to the expanded view increases the number of columns displayed in list view.
    To switch to the basic metadata overlay view in the Browser in filmstrip view, grid view, and list view
    Do one of the following:
    Choose View > Metadata Display, then choose Switch to Basic View from the Browser section of the submenu (or press Shift-U).
    In the tool strip, choose Switch to Basic View from the Browser section of the Metadata Overlays pop-up menu.
    Note: Switching to the basic view decreases the number of columns displayed in list view.

  • How to get printer IPAddress using java code

    Hi all,
    Can some one suggest in java
    1) how to get printer IPaddress
    2) send a printer job to a particular printer either by using printer name or by printer IPaddress ?

    Hi all,
    Can some one suggest in java
    1) how to get printer IPaddress
    2) send a printer job to a particular printer either by using printer name or by printer IPaddress ?

  • How do I get in contact with apple print services support Australia when my Print Order (book) keeps being cancelled (for no known reason)

    How do I get in contact with apple print services support Australia when my Print Order (book) keeps being cancelled (for no known reason)

    Portables that will not Power on.
    Try another power outlet.
    http://support.apple.com/kb/TS1365
    Go step by step.
    Note: Steps 5 and 6
    Best.

  • I've got a wireless network with one iMac and a Vista PC, on the Vista PC is through USB a printer connected. How can i print from my iMac to that particular printer ?

    I've got a wireless network with one iMac and a Vista PC, on the Vista PC is through USB a printer connected. How can i print from my iMac to that particular printer ?

    You need to turn on Printer Sharing on both the PC and OS X. I can't help you on Vista but in OS X it's System Preferences - Sharing - check the Printer Sharing box.

  • How to get the status of service in rac

    Dear all,
    how to get the status of service in rac.
    SQL> show parameters service;
    NAME                                 TYPE        VALUE
    service_names                        string      DEVDB, DEVDB1, devdb
    [oracle@rac1 ~]$ srvctl status service -d devdb -s devdb
    PRKO-2120 : The internal database service devdb cannot be managed with srvctl.

    user7244870 wrote:
    Dear all,
    how to get the status of service in rac.
    SQL> show parameters service;
    NAME                                 TYPE        VALUE
    service_names                        string      DEVDB, DEVDB1, devdb
    [oracle@rac1 ~]$ srvctl status service -d devdb -s devdb
    PRKO-2120 : The internal database service devdb cannot be managed with srvctl.
    Internal services cannot be managed with srvctl utility. Check if you have any user defined service in dba_services
    SQL> desc dba_services
    Name                                      Null?    Type
    SERVICE_ID                                         NUMBER
    NAME                                               VARCHAR2(64)
    NAME_HASH                                          NUMBER
    NETWORK_NAME                                       VARCHAR2(512)
    CREATION_DATE                                      DATE
    CREATION_DATE_HASH                                 NUMBER
    FAILOVER_METHOD                                    VARCHAR2(64)
    FAILOVER_TYPE                                      VARCHAR2(64)
    FAILOVER_RETRIES                                   NUMBER(10)
    FAILOVER_DELAY                                     NUMBER(10)
    MIN_CARDINALITY                                    NUMBER
    MAX_CARDINALITY                                    NUMBER
    GOAL                                               VARCHAR2(12)
    DTP                                                VARCHAR2(1)
    ENABLED                                            VARCHAR2(3)
    AQ_HA_NOTIFICATIONS                                VARCHAR2(3)
    CLB_GOAL                                           VARCHAR2(5)http://docs.oracle.com/cd/B19306_01/rac.102/b14197/srvctladmin.htm

  • How to get current month and last month dynamically??

    how to get current month and last month dynamically
    like
    month = getCurrentMonth();
    lastmonth = getcurrentMonth() -1;
    please help
    thanks

    hi :-)
    /* depracated but can be still useful */
    java.util.Date dtCurrent = new java.util.Date();
    int month = dtCurrent.getMonth();
    int lastmonth = dtCurrent.getMonth() - 1;
    System.out.println("* " + month);
    System.out.println("* " + lastmonth);
    /* better to use this one */
    Calendar cal = new GregorianCalendar();     
    int imonth = cal.get(Calendar.MONTH);
    int ilastmonth = cal.get(Calendar.MONTH) - 1;
    System.out.println("*** " + imonth);
    System.out.println("*** " + ilastmonth);
    regards,

  • How to get current time and date??

    How to get current time and date from my PC time and date to the java application??
    i use java.util.* package but got error, that is:
    - java.util.* and java.sql.* class are match
    - abstract class cannot be instantiated
    so what can i do, pls guide...thanks...

    There is a method in the System class that will return the current system time. You could also instantiate a Date, Time, Timestamp, or Calendar object, all of which get created with the system time by default.
    Don't import *. Import the specific classes you need.
    Next time, post the actual text of the exceptions/compile errors. If you make people guess, most just won't bother.

  • How to get additional field from the second list base on lookup information column ?

    Hi everyone,
    Currently I created a SharePoint hosted Apps project and I need to know how can I get additional field from the second list base on lookup information column. example List1 Have 2 columns column1 and column2(Lookup Information from list2 (category)),
    List2 have 3 columns title, and category, and color.  so how can get the title and color from list2 base on this lookup information column (SharePoint Hosted apps and Javascript code)? that is possible?
    Best regards,
    ------------------------------------------------------------ ---Tola---

    You can build one custom lookup control. Refer to the following post
    http://www.stuartroberts.net/index.php/2012/10/03/enhanced-lookup-field-part-1/
    Alternatively, try the following solution from codeplex
    http://sp2010filteredlookup.codeplex.com/
    http://filteredlookup.codeplex.com/
    --Cheers

  • Qry:How to get different price for each price list (variable area) in order

    1-How to get different price for each price list (variable area) in order for sale. for the opportunity to display and select multiple prices.
    2- I add a location store from a table in line item and I want to see this area in order,.
    I 'm created 2 field location(item line and order), 1 table location
    I tried this for exemple : select $ [userfieldlocation.OITW]

    Thanks Suda for your answer,
    the Formatted Search for prices is OK, but for the Item locations in warehouse this is not so simple,     
    I must have several (at least 2) locations for the item in the Warehouse and a track of this location and search possibilities.
    read carefully and imagine how (Management warehouse locations)
    I added a user table '@Location' who linked to a user field 'U_Location in Item master data --> lnventory data  line and an ather user field 'U_Location' in sales order
    I met the value of location in the table (list of locations for any warehouse), I select the location of each item while receiving merchandise in the user field of inventory data line (Item M data) and this value appears in the sales order 'U_Location' user field ( only the location value in the default warehouse for this Item)
    or
    create an user field 'location' in Good receipt PO to fill it while receiving merchandise that appears in the sales order to give possibility to find/select the location of the item at this order and in Item master data
    I think we will use all these tables
    @LOCATION
    PDN1
    OITM
    OITW
    OWHS
    RDR1
    Juste a another question : where you found this and What is: ' 38.1.0 '
    Is it in document (System information):Item=38 Pane=1 ??
    Thanks,
    Ouchen

  • How to get Invoice status value in oracle payable

    Hi guys,
    I am new in oracle apps plz tell me how to get invoice status value of prepayment invoice type in payable.
    Navigation ->Payables->Oracle Payables ->Invoices->Inquiry->Invoices ->go to Invoice status block and open to Status LOV
    plz provide me sql query to find those status lov values and accounted values for any supplier & invoice num.
    it's urgent plz .......................
    Thanks guys.......

    The invoice approval status does not come from any table / lookup.
    Instead, Oracle builds it by calling the ap_invoices_pkg.get_approval_status function.
    You can also call it by passing invoice_id, payment_status_flag and invoice_type_lookup_code.
    All these 4 columns are present on the ap_invoices_all record.
    Hope this helps
    Sandeep Gandhi
    Independent Consultant

  • How to get automatic plant and shipping point and storage location

    hi,
    sap gurus,
    how to get automatic plant and shipping point and storage location automatically into the sales order
    i have done all the config settings for that
    but its not appearing automatically.
    regards,
    balaji.t

    Hi
    Balaji...
    U can get the plant in sales order,  by doing the default the same in customer master or in  material master. In customer master -- sales are data--shipping tab delivering plant there u can assign and get the same in order for that customer. it is better to do in customer master rather than in material master.
    Shipping point is getting determine in sales order and u can not make it default like plant. Shipping point is determine in the basis of Shipping condition of customer ( ship to party)+ loading group of material + Deliverying plant there u have to assing the shipping point and it will flow in the sales order. Tcode OVL2
    For S loc u have to enter manually in the sales order u can not get it automatically.
    Hope this will help you.
    Thx.

Maybe you are looking for

  • Itunes wont open after snow lep upgrade

    upgraded to snow lep. went through all software updates rebooted multiple times. Itunes wont launch, when I double click it gives me an unexpextedly quit window, downloaded itunesx reinstalled....nothing...........so an apple app, doesnt play well wi

  • Itunes unresponsive on start up

    I run my A/V system through a Mac Mini -- used primariy for downloading tv shows and movies through itunes and streaming shows online. Since I started using iTunes Match, iTunes has become incredibly buggy on this computer -- hanging up on launch nea

  • The iTunes library file cannot be saved. An unknown error occurred (-50).

    I launch iTunes, I get "Updating iTunes library" and then, "The iTunes library file cannot be saved. An unknown error occurred (-50)." This started happening after I upgraded to iTunes 7.3. Things seem to work OK, but my artwork was rearranged in cov

  • Add a standard field in Complex table ctPart

    Hi All, I want to add transaction fields (like unloading point) in a complex table ctPart, so that the these fields appear in my search parameters along with other parameters in SAP Work Manager 6.0 App I want to know how to link it to the back end.

  • Elements11 just stopped working

    Guys I Need some help here. Elemets 11 stopped working with the "windows is checking for a solution" message but nothing after that. I have tried the Ctrl,Alt,shift. Delete Elements settings but this has not helped