Labview 7 - How do I tell if the default printer is connected?

I have an HP USB printer as the default. It works fine when I print to it in LabVIEW. But, if I disconnect it, no errors occur. So I can't tell that my report did not print!

Hello.
You should get an error message that says either the command failed or that the vi failed to get printer information (depending on whether you are using a Standard Report or a Word/Excel Report) when the print vi runs. Try creating a test vi that opens a new report, adds some characters, prints, and closes. If there are no printers connected you should get an error message.
If you have another printer connected to your computer it is possible the default is being reset and it is sent to that printer.
Also, make sure you are using error handling to ensure that you catch the error that comes out of the print vi.
Colin Christofferson
Applications Engineer
Colin Christofferson
Community Web Marketing
Blog

Similar Messages

  • How do I revert to the default printer settings? I'm stuck on 4 sheets per page.

    I selected 4 sheets per page for a job a few days ago.  Since then, every time I go to print from Reader, 4 sheets per page shows up as the default.  I have to manually change it to "custom" with 1 by 1 and then it will print normally (1 sheet per page).  However, when I return to print something else (both in the same session - not closing the program, and also when I close the program and return), it will be back on 4 sheets per page!
    1) How do I return the printer to the default settings?
    2) Why is there no 1 sheet per page setting option?  It seems odd that I have to select "custom" and then specify 1 by 1.  Or perhaps my question should be "where" is the option to select a single sheet per page, rather than a custom setting?
    Thanks in advance.

    Right-click on a toolbar and click on the "Menu Bar" entry to select it, that will get rid of the Firefox button and display the menu bar instead.
    To change the tabs to below the other toolbars, right-click on a toolbar and click on the "Tabs on Top" entry to de-select it.
    This site has some further things you can tweak - http://www.computertechtips.net/64/make-firefox-4-look-like-ff-3-6

  • How can I retrieve the IP address of the default printer from the windows registry

    I am using LabVIEW 7 on windows NT4 computers.
    I have a SubVI that I use to ping the network printer to make sure that the printer is on line prior to sending a print at the end of testing a unit.
    If LabVIEW does not get a reply to its ping data is saved locally and the user informed.
    I would like to modify the VI that pings the printer to ping the default printer of the computer on which the VI is running.
    I would be grateful if anyone can show me how to retrieve the default printers IP address.

    Hi Stuart,
    The registry entries for User's Default Printer are:
    Win 9x:
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\Curr​entVersion\Windows]
    NT/XP:
    [HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows]
    "Device"="Printer Name"
    The device is the name used to represent the printer in the registry. The name can be found in the [HKEY_CURRENT_USER\Printers\Settings] key.
    Machine name is part of the "Printer Name," which you can use to ping directly (i.e., w/out having to look-up its IP address).
    Hope this helps.
    Regards,
    Khalid

  • My macbook pro no longer connects to my TV with the mini dvi to hdmi adapter. A while ago the computer fell down and hit the cable. How can I tell if the computer is working ok. Doesn't show mirroring any more.

    My macbook pro no longer connects to my TV with the mini dvi to hdmi adapter. A while ago the computer fell down and hit the cable. How can I tell if the computer is working ok. Doesn't show mirroring any more. Was working while watching a movie but when I pulled it out from the computer and put it back in the system would no longer mirrorr the screen on the TV.

    The best option is an appointment at an Apple store genius bar.  The evaluation will be for FREE!
    Ciao.

  • How can I pre-define the default selection in a SelectOneChoice?

    How can I pre-define the default selection in a SelectOneChoice?
    (1) Here's my JSF-code:
    <af:selectOneChoice label="#{res['usercreate.input.sex']}"
    value="#{bindings.Sex.inputValue}"
    binding="#{SelectListBean.sexlist}"
    readOnly="false" autoSubmit="false">
    <af:selectItem label="#{res['data.sex.women']}" value="1"/>
    <af:selectItem label="#{res['data.sex.man']}" value="2"/>
    </af:selectOneChoice>
    (2): manged bean: to set the default value to be the first in the list, my managed bean as follows:
    import oracle.adf.view.faces.component.core.input.CoreSelectOneChoice;
    public class MBSListBean {
    private CoreSelectOneChoice sexlist;
    public MBSListBean() {
    public void setSexlist(CoreSelectOneChoice sexlist) {
    this.sexlist = sexlist;
    this.sexlist.setValue(1);
    public CoreSelectOneChoice getSexlist() {
    return sexlist;
    (3) when i launch the page, it often gives me such warnings:
    WARNUNG: Could not find selected item matching value "1" in CoreSelectOneChoice[UIXEditableFacesBeanImpl, id=_id7]
    how to solve the problem ?
    Thanks,
    wzzdx

    You could also set the default on your entity or viewobject, in the properties of your attribute.

  • I just upgraded from Express to Pro.  When I open a project in Finder and neither Express nor Pro are running, it always opens in Express.  "Open With ..." says Express is the default.  How can I make Pro the default instead?

    I just upgraded from Logic Express to Pro.  When I open a project in Finder and neither Express nor Pro are running, it always opens in Express. I now want projects to open in Pro.  "Open With ..." says Express is the default.  How can I make Pro the default instead?

    Well, when I've done things like that it always sems like a good idea to keep an application that you know the file will definitely open in...

  • How can you tell who the original sender of a group text is on an iPhone 5, when all that appears is a list of recipients in no particular order

    how can you tell who the original sender of a group text is on an iPhone 5, when all that appears is a list of recipients in no particular order? I can't seem to identify the sender in the details list.

    Start a separate thread to the original sender.

  • How do I tell if the customer is B2B or B2C

    I'm wanting to create a "dealer" area on our website.  A place where B2B customers can go to download special deals, pricelists, etc.
    My idea was to put a link on the my account page to an asp page that I would build.  On that page I need it to figure out if the customer in that session is B2B or not.  If not, give them a "sorry" message, and redirect them back to the my account page.
    If it's a dealer, it displays the page with all the dealer info.
    Is there a way to do this in netpoint already?  If so, how?  If not, how do I tell if the customer is B2B or not in an asp page?
    Thanks,
    Jim

    Hi Jim,
    To determine if a user is a B2B account or not you can use the API.
    So for example here is a skeleton you can use: (assuming you are using c#)
    <%@ Page Language="C#" inherits = "netpoint.classes.NPBasePage" %>
    <%@ Import Namespace = "netpoint.classes" %>
    <%@ Import Namespace = "netpoint.api.account" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
            //check if this is a B2B user.
            NPBasePage p = (NPBasePage)Page;
            NPAccount acc = new NPAccount(p.AccountID);
            if (acc.AccountType == "B")
                //its a B2B user
          else
               //not a b2b user, redirect
               Response.Redirect("http://wherever you want to go to");
    </script>
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
        </div>
        </form>
    </body>
    </html>
    hope that helps.

  • How do I make Photoshop the default Edit App for .jpg in Windows 7?

    How do I make Photoshop the default Edit App for .jpg in Windows 7?    I want to be able to right click on a .jpg file, select the EDIT option in the Context Menu, then have Photoshop edit the file instead of Paint.
    In Windows XP it was very easy to use the File Manger to associate the file type .jpg and action edit with Photoshop.    No so easy in Windows 7.  It is easy to change the default OPEN application, but I would like to leave Windows Viewer as the default OPEN application and have Photoshop as the EDIT applicaiton.

    Before I posted the original question here, I had probably spent a couple of hours trying to research it.   I hate to find no answer for something I know can be done.   So I spent some more time and found the following in the bowels of a Tech Forum that is generally way over my head.  I have modified it to be Photoshop specific.
    These instructions will update the default EDIT action for image types - jpg,png,gif and the variations.     If you are unfamiliar with editing the program registry you probably will want to back up your registry or take a system backup.
    1. Open up the registry editor (Regedit.exe).
    You will need to be signed on as a Windows user that is an administrator
    2. Find HKEY_CLASSES_ROOT -> SystemFileAssociations -> image ->  shell -> edit -> command
    This seems like it would be easy but it is not, because there are many key names that are very close (like System.FilesAssociations).   Keep looking because you will find it eventually. 
    3. Double click on "Default" (on right window pane) and update the program location.
    You should see that MSPAINT.EXE is the current program.
    Erase the existing value and enter you photoshop location in quotes followed by %1 in quotes.  For me this is "C:\Program Files  (x86)\Adobe\Adobe Photoshop CS4\Photoshop.exe" "%1"  
    Hit return.
    4.  Exit Regit and test.

  • How can I tell if the mini dvi on my 2010 13" macbook pro supports audio?

    How can I tell if the mini dvi on my 2010 13" macbook pro supports audio?

    If it's a post 2009 Mac it supports audio on the HDMI port. See:
    About Mini DisplayPort to HDMI adapters
    Mac mini (Mid 2010)- Frequently asked questions about HDMI

  • Hi, my Macbook Pro isn't charging when I plug in my charger and the light on the charger thing isn't lighting up. How can I tell if the charger or the computer is broken? Also, is there a way to fix it? Thanks.

    Hi, my Macbook Pro isn't charging when I plug in my charger and the light on the charger thing isn't lighting up. How can I tell if the charger or the computer is broken? Also, is there a way to fix it? Thanks.

    Not sure how I would tell if the contacts are stuck, but they look normal. The other stuff:
    Battery Information:
      Model Information:
      Serial Number:    W0046Q08UBX0A
      Manufacturer:    SMP
      Device name:    bq20z451
      Pack Lot Code:    0000
      PCB Lot Code:    0000
      Firmware Version:    0201
      Hardware Revision:    000a
      Cell Revision:    0157
      Charge Information:
      Charge remaining (mAh):    3211
      Fully charged:    No
      Charging:    No
      Full charge capacity (mAh):    5845
      Health Information:
      Cycle count:    943
      Condition:    Normal
      Battery Installed:    Yes
      Amperage (mA):    -1354
      Voltage (mV):    11210
    System Power Settings:
      AC Power:
      System Sleep Timer (Minutes):    10
      Disk Sleep Timer (Minutes):    10
      Display Sleep Timer (Minutes):    10
      Wake On AC Change:    No
      Wake On Clamshell Open:    Yes
      Wake On LAN:    Yes
      Display Sleep Uses Dim:    Yes
      GPUSwitch:    2
      Battery Power:
      System Sleep Timer (Minutes):    10
      Disk Sleep Timer (Minutes):    10
      Display Sleep Timer (Minutes):    2
      Wake On AC Change:    No
      Wake On Clamshell Open:    Yes
      Current Power Source:    Yes
      Display Sleep Uses Dim:    Yes
      GPUSwitch:    2
      Reduce Brightness:    Yes
    Hardware Configuration:
      UPS Installed:    No
    AC Charger Information:
      Connected:    No
      Charging:    No

  • How do I Make Acrobat the default for PDF Files

    I have been using Acrobat 6 in my Mac for quite a few years.  And I would like to have Acrobat open automatically when I open a PDF file but Adobe Reader opens.
    How do I make Acrobat the default program when opening a PDF file?

    See this topic: http://forums.adobe.com/thread/833320

  • How do I make Pages the default program for .doc files?

    How do I make Pages the default program for .doc files without having the need to change the default program for each individual.doc file?

    Navigate to a .doc file.
    Ctrl click the file
    Choose Open with and then go down the list, past pages, to other
    Navigate to pages
    Before you click Open make sure you click the 'Always open with' check box.
    You should be okay.
    You can do a similar think by selecting the file, Choosing File-Get Info
    Then open the Open With Disclosure triangle.
    select pages and then click CHANGE ALL
    Hope this hleps.
    M.

  • We have 3 locations coming up for our TV listings how do we make one the default and stop others?

    We have 3 locations coming up for our TV listings how do we make one the default and stop others?
    There is Bed Room, Living Room and Family how can we make ONLY FAMILY COME UP?
    When we check the listings or record from the TV Listing the LIVING ROOM comes up and only the Family has the controls to record.
    THANK YOU.
    Solved!
    Go to Solution.

    Please provide more details.
    What equipment do you have?
    Where do you see this listing? On STB? Online? Verizon App?
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.

  • How do I make Pages the default word processing program?

    How do I make Pages the default word processing program, including Appleworks files?
    I want any Appleworks file I open to open in Pages - is there a setting to make that happen?

    Hello ADW,
    To change the default programme used to open a filetype, Get Info on one of the files you are looking to set, the change the Open With selection to Pages.
    Then click on Use this application to open all documents like this one.
    You will have to repeat this for each file type you want to use that way.
    Have a wonderful day!
    -=C=-

Maybe you are looking for

  • After i made update to ios system the auto brightness for screen is not working any more although i am turning it on

    Before i make update the auto brightness was working properly The screen was very low bright in the dark automatically and high bright in light But now after i made update it is nit working I am surprised that apple system is not stable Please suppor

  • Needs  help to retrive the last row in a  select query without using rownum

    Hi , i need to retrive the last row from the select sub query without using rownum. is there any other way to retrive the last row other than the below query. is that the ROWNUM=1 will always retrive the 1 row of the select query ? select from* *(sel

  • Where is the CML Personal version?

    I have had people asking where is the personal version, why isn't it available, why did we say it was coming and change, and so on. Below is an explanation with a little history to explain what happened and why. For those reaching out to me directly

  • Adapter JNDI are errored out in JNDI tree on Weblogic

    Hey, I have setup weblogic 10.3.4 and SOA Suite 11g. The adapters seem to be deployed and active with a green 'OK' status in the deployments on the soa_server1. However when I go to the jndi tree for the soa_server1, all the adapters have an '!' for

  • Attachments in Advanced Table

    Hi, Facing an issue in adding attachments item through personalization. I personalized the seeded page for adding the attachment image in table. But while clicking the attachment image am getting the error as *"404 Not Found* *Resource /OA_HTML/null&