How to Check  Printer is Connected or not

Hi to all, im new to java and im having atrying to print a file, ive been looking how to retrieve the printer status before i send the printjob to the printer and i couldnt find an answer. Is there any way to retrieve the printer status? I mean, if its On/Off, Out of paper, etc before i send my printjob... Ive been looking to the printerState class but i dont know how it is supposed to be used, and i dont know if it is a possible solution.
Thanks everyone for your time.
Regards,
Rama.

hi,
I am running the script table_partition which consist of 366 partition and 31 sub partition but the script is hanging.there is no hint in alert log file or anything wat might be the reason is it because of extent size? as extent size for this tablespace where table has to be create is 1mb,wat i suspect is do i need to set for higher value inorder to avoid this?
with regards;
Boo

Similar Messages

  • How to check table is creating or not

    Hi,
    I am creating only one table by running a table creation script(table.sql) which contain 366 partition.but I dont know whether table is creating or not.it is taking long time,sometimes I feel like script is hanging.even before running the script I have even spooled but spool file shows nothing. so how to check table is creating or not from background? can anyone please let me know abt this.this is bit urgent
    sql>spool table.log
    sql>@table_partition.sql

    hi,
    I am running the script table_partition which consist of 366 partition and 31 sub partition but the script is hanging.there is no hint in alert log file or anything wat might be the reason is it because of extent size? as extent size for this tablespace where table has to be create is 1mb,wat i suspect is do i need to set for higher value inorder to avoid this?
    with regards;
    Boo

  • How to check Reconcilliation has happened or not for a payment document

    Hi,
    How to check Reconcilliation has happened or not for a payment document? Payment doc ABCDEF was created on 2nd. Now i am not sure whethr RECON has happend ot not
    Please help.

    Dear,
    If you have made payment to vendor and want to know whether reconciliation happened or not then check if this document exist in table BSIK then reconciliation has not been done.
    Regards,
    Chintan Joshi.

  • How to check table is NULL or not when a form load?

    How to check table is NULL or not when a form load?
    I want to make the form when it load it check the data in table, if there are no data in table other form will be load.
    Sorry for bad English... 

    Maybe you can do this in form1's Form_Open event:
    if dcount("*", "table1") = 0 then
      Cancel = True
      Docmd.Openform "form2"
    end if
    -Tom. Microsoft Access MVP

  • How to email/print my highlights or notes from ibooks or kindle ipad app?

    How to email/print my highlights or notes from ibooks or kindle ipad app?

    I also had this question, and spent time puzzling over it.  But here's the answer:
    Open the relevant iBook
    Click the icon that looks like a 3 line bullett list
    Click on Notes
    Click on the icon in the top right hand side that looks like a page with an up arrow pointing out of it.
    Choose Edit Notes
    Select the notes or highlights that you want printing (a tick appears in the circular radio button)
    Click SHARE
    Choose either Mail or Print
    Voila

  • How to check one table exist or not in SAP

    Hi, Gurus:
    How to check one table exist or not in the SAP.
    Thanks,

    Hi,
    Query the table DD02L..
    Select single * from DD02L where tabname = 'Your table name'
                          AND TABCLASS = 'TRANSP'.  " For transparent tables.
    Thanks
    Naren

  • How to check internal table sorted or not

    Hi all
    I need to check internal table sorted or not which is without header line and having only one field and six values. please let me know how to check it is sorted or not because i need to display message if it is not sorted.
    thanks,
    Minal

    Hi Minal,
    Go through  this info.
    Sorted tables
    This is the most appropriate type if you need a table which is sorted as you fill it. You fill sorted tables using the INSERT statement. Entries are inserted according to the sort sequence defined through the table key. Any illegal entries are recognized as soon as you try to add them to the table. The response time for key access is logarithmically proportional to the number of table entries, since the system always uses a binary search. Sorted tables are particularly useful for partially sequential processing in a LOOP if you specify the beginning of the table key in the WHERE condition.
    Stable sort
    The option
    SORT <itab> ... STABLE.
    allows you to perform a stable sort, that is, the relative sequence of lines that are unchanged by the sort is not changed. If you do not use the STABLE option, the sort sequence is not preserved. If you sort a table several times by the same key, the sequence of the table entries will change in each sort. However, a stable sort takes longer than an unstable sort.
    Examples
    DATA: BEGIN OF LINE,
            LAND(3)  TYPE C,
            NAME(10) TYPE C,
            AGE      TYPE I,
            WEIGHT   TYPE P DECIMALS 2,
          END OF LINE.
    DATA ITAB LIKE STANDARD TABLE OF LINE WITH NON-UNIQUE KEY LAND.
    LINE-LAND = 'G'.   LINE-NAME   = 'Hans'.
    LINE-AGE  = 20.    LINE-WEIGHT = '80.00'.
    APPEND LINE TO ITAB.
    LINE-LAND = 'USA'. LINE-NAME   = 'Nancy'.
    LINE-AGE  = 35.    LINE-WEIGHT = '45.00'.
    APPEND LINE TO ITAB.
    LINE-LAND = 'USA'. LINE-NAME   = 'Howard'.
    LINE-AGE  = 40.    LINE-WEIGHT = '95.00'.
    APPEND LINE TO ITAB.
    LINE-LAND = 'GB'.  LINE-NAME   = 'Jenny'.
    LINE-AGE  = 18.    LINE-WEIGHT = '50.00'.
    APPEND LINE TO ITAB.
    LINE-LAND = 'F'.   LINE-NAME   = 'Michele'.
    LINE-AGE  = 30.    LINE-WEIGHT = '60.00'.
    APPEND LINE TO ITAB.
    LINE-LAND = 'G'.   LINE-NAME   = 'Karl'.
    LINE-AGE  = 60.    LINE-WEIGHT = '75.00'.
    APPEND LINE TO ITAB.
    PERFORM LOOP_AT_ITAB.
    SORT ITAB.
    PERFORM LOOP_AT_ITAB.
    SORT ITAB.
    PERFORM LOOP_AT_ITAB.
    SORT ITAB STABLE.
    PERFORM LOOP_AT_ITAB.
    SORT ITAB DESCENDING BY LAND WEIGHT ASCENDING.
    PERFORM LOOP_AT_ITAB.
    FORM LOOP_AT_ITAB.
      LOOP AT ITAB INTO LINE.
        WRITE: / LINE-LAND, LINE-NAME, LINE-AGE, LINE-WEIGHT.
      ENDLOOP.
      SKIP.
    ENDFORM.
    ************rewords some points if it is helpful.
    Rgds,
    P.Naganjana Reddy

  • How to check oracle properly installed or not?

    Hello Friends,
    How to check oracle properly installed or not. cause during installation time the person who installed faced many problems. we have RISK base IBM p5 Series server and Oracle 10g RAC.
    i want to check installation made properly or not.
    Thanks,
    Nikunj Patel

    Installation for RAC environments means you are not only talking about one single installation, but several installations, and the number of installations and checking processes depend on factors such as the clusterware you are using, if you are using the Oracle clusterware or the proprietary clusterware, if you are using a separate oracle home to install the ASM or if you are using the same oracle home for both, the ASM and the RDBMS.
    First you must ensure you have installed all prerequisites according to your platform, i.e. patches, packages, kernel parameters, etc. which are listed at the install guide corresponding to your platform. Then you should use the cluvfy (cluster verifier tool) to check if the different install phases are properly installed
    The most critical and most of the times, problematic installation phase is the clusterware. So you should specify if you installed the Oracle clusterware or the proprietary clusterware. In a RAC environment if your clusterware is not properly installed, most probably you won't have a running RAC, so if your environment is functional there you may have high probabilities that it is OK, but to make sure, launch the cluvfy tool.
    The cluvfy tool verifies the process since the beginning and it ensures your environment meets the required minimum requirements to be at an operational level, it checks the pre/post install phases for the clusterware, pre/post install of the rdbms, and it is launched from the OS. It can be obtained as a standalone product or you can use the one found at the clusterware Oracle Home. For further references on this tool I suggest you to read this
    Oracle® Database Oracle Clusterware and Oracle Real Application Clusters Installation Guide
    10g Release 2 (10.2) for AIX
    Part Number B14201-04
    ~ Madrid

  • How do you print in black only (not color) on Canon MG3520 printer?

    How do you print in black only (not color as I want to conserve color)  on Pixma MG3520 printer.

    No, sorry.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • How to check whether internet connection is avaliable or not from Swing

    Hii Javaties
    I am developing a application in Swing .
    I need to call a servlet from Swing.
    So how can i check tht internet connection is avaliable or not. ?

    i am also fatching this type of problem. my applet is playing a audio file from server. during the playing time if network connection failed then NoRouteToHostException occurs from some PCs. but there are some PCs it doesn't occur though the playing is stoped.
    all PCs OS windows XP and jre jdk1.5.0_06
    i can't find out the problem. can any one help me for this?
    code:
    URL testURL = null;
                                try {
                                    testURL = new URL(sourcePath);
                                    //inputStream = testURL.openStream();
                                    URLConnection connection = testURL.openConnection();
                                    connection.connect();
                                } catch(NoRouteToHostException e) {                
                                    System.out.println("NoRouteToHostException block: " + e.getMessage());
                                }thanks
    bashar

  • How can I print without connection to internet?

    My internet connection is very poor. It's often down.
    How can I print from mi mobile device to the printer that is wired connected?
    With iprint photo nothing was needed.

    Hmm this application on the android only requires that your Android device connects to your wifi maybe i can try to provide some clearer information and ill get some information from you as well.
    1. What type of printer do you have?
    2. What type of Android device do you have?
    3. The printer can either be wired or wirelessly connected to the network to use the ePrint home and biz application.
    Here are the steps that should apply.
    1. Turn your wifi on you Android device on and make sure its connected to the same network as the printer.
    2. Download and run the Hp ePrint home and biz application.
    3. Complete the registration in the application, it will ask for your personal email address and you will then receive an email with a pin to complete the registration.
    4. Next Either choose Photo Albums or Documents in the Application. Then select a document or photo to print, The next screen should give you a print preview, Select the down arrow and that will take you to the printer options which will have the supported printers in that list to print.
    Possible causes why your printer cannot be found include the following:
    The printer is not supported
    You are not connected to the  network
    You are connected to the wrong  network
    The printer is turned off
    The printer is not shared over the  network
    **Click the KUDOS star on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.
    (Although I am employed by HP, I am speaking for myself and not for HP)

  • How to check a network connected system is in power on?

    How to check whether a network connected system is in power on through its ip address? Is there a simple way in java to check that?
    Thanks

    How to check whether a network connected system is in
    power on through its ip address? Is there a simple
    way in java to check that?If you know that it normally has a server listening on a given port, then you can try to establish a connection on that port.
    If the connection succeeds, it's powered on.
    If the connection fails, you cannot know whether it's powered on or not. It may be on, but the server isn't running. It may be on with server running but the network path to that host may have a problem. It may be on, server running, good network path, etc., but the server may be very busy and the connection attempt may timeout. etc.

  • How to check Ethnet is enabled or not?

    hello ,
    how can I find out whether ethernet is up or not using java.
    I get one IP address, and want to connect it. it runs.
    But, when gives wrong IP also, it entered to main function (for me it is GUI MainFrame).
    I use ,
    InetAddress address = InetAddress.getByName(_DEVICE_IP_);
    and address.isReachable(1000) method.
    so how can I check whther ethernet is connected or not.

    Ethernet would normally represent hardware. There is no way to access that via the normal Java API.
    If you simply want to verify connectivity to a specific IP then just connect to it. It will fail if there is no connectivity regardless of why and that should be sufficient.

  • How to check oracle is running or not

    Hi,
    Can any one help me the command to check whether oracle is running or not, in UNIX flatform.How to check the Disk+Work proess is running or not.

    Option1 :Logon to SAPDBA...U will be able to see whether Oracle is running or not.
    Option 2:
    Sqlplus /nolog;
    connect / as sysdba;
    startup;
    If it is already running: you will get msg that Oracle is already running
    Oprion 3: ps -eaf|grep ora
    to determine whether disp+work is running or not:
    Option 1: ps -eaf|grep sap
    Option 2: dpmon pf = <path of instance profile>
    Reward Points if helpful!

  • How to tell how a network printer is connected?

    Sorry for the terrible subject line, but I'm really at a loss with this one.
    I have a printer connected to my work network via Ethernet. The printer has a static ip address. When I upgraded to a new laptop and OS 10.5.5, I set up this printer, but I really don't recall how I set it up, but it worked over my Ethernet connection.
    I often connect to the network over wireless or wired, and therein lies my problem. Today, I started to get printer errors telling me that AppleTalk was held by the Ethernet port so I had to turn it off of Ethernet and turn it on for the Airport connection when I attempted to print wirelessly. Once I did this, it worked. I never recall needing to to do this with the printer set up for IP printing with previous versions of OSX, which makes me think the printer is not configured as an IP printer. How can I tell how the printer is set up in OSX??
    Lastly, I attempted to set the printer up as an IP printer anew (I did not remove the other version of the same printer in the preference pane) and this seems to be failing.
    Thanks for any input.

    Hard to give much help since you've not provided any information on the network environment, routers, cable modem, switches, etc. No information on makes or models including the printer(s).
    The only definitive thing I found is the mention of using AppleTalk. Unless you have a very old printer that requires AppleTalk there is no reason to turn on AppleTalk. Now beyond that I can't tell if turning off AppleTalk has now resolved your problem.
    Most Ethernet based printers are configured as LPR printers, not IP printers, and you need the IP address you configured the printer to use. The printer's TCP/IP configuration should include the network's gateway IP address and the network mask. You set up the printer's TCP/IP usually from the printer's front panel unless it has a web-server built-in that you can access. The printer driver is selected and configured using the Print & Fax preferences. As for how you configured the printer in the past we have no way to know. You should have written it down somewhere. You will have to access the printer's front panel to figure that out. But then we can't help much since you've never told us what the printer model is.
    You'll have to provide more information and be a bit more precise about the query so we can understand exactly what you are asking.

Maybe you are looking for