-Operation 2147221021 unavailable

I write an app that opens an Excel file and write data into it.  I based my request on the project of Excel2000dem in activex for CVI 2009 samples.

When I run my application I always get error-2147221021 operation unavailable until I run the Excel2000dem program.  Once it works, my application works exactly like the excel2000dem program.

It seems that something is not activating until the Excel2000dem program works, but I see no difference in the code segments.

Excel_ActiveApp trying to connect to an already running instance of the product: If no Excel is running, you get this error "not available". Apparently, you run Excel demo app and leave it without closing Excel: from that moment on your own application can run properly. If this is true, you should be able to run your application without error if you first start Excel. See this KB article for reference.

You can get rid of this problem with this code:

   error = Excel_ActiveApp (NULL, 1, LOCALE_NEUTRAL, 0, &ExcelAppHandle);
    if (error == MK_E_UNAVAILABLE) {
        wasActive = 0;
        // Excel not active: try to launch it
        errChk (Excel_NewApp (NULL, 1, LOCALE_NEUTRAL, 0, &ExcelAppHandle));
    }

In this code, the error is filtered and determines whether to launch a new instance of the product or not.

"wasActive" indicator determines if the closure of Excel to the output of the program or not: If true I run the following code to the output of the program. You can skip this option if you are not interested in it.

   if (!wasActive) Excel_AppQuit (ExcelAppHandle, &ErrorInfo);

error = Excel_ActiveApp (NULL, 1, LOCALE_NEUTRAL, 0, & ExcelAppHandle);
If (error == MK_E_UNAVAILABLE) {}
wasActive = 0;
Excel not active: prova a lanciarlo
errChk (Excel_NewApp (NULL, 1, LOCALE_NEUTRAL, 0, & ExcelAppHandle));
}

Tags: NI Software

Similar Questions

  • ORA-00230: forbidden operation: snapshot controls unavailable file enqueue

    Hello

    Get this error for a while now.

    From control file and SPFILE Autobackup 3 November 2014 06:05:11

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03015: an error has occurred in the script stored std_arch_log_bkup

    RMAN-03009: failure of command of file control and SPFILE Autobackup on channel ORA_DISK_1 at 03/11/2014 07:08:13

    ORA-00230: forbidden operation: snapshot controls unavailable file enqueue

    Complete recovery manager.

    ------------------------------------------------------------------------------

    Recovery Manager: release 11.2.0.3.0 - Production on Mon 3 Nov 07:08:17 2014

    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

    connected to target database: EMDEV (DBID = 1134683784) connected to the recovery catalog database

    RMAN > RMAN > catalog resync;

    2 > 2 >

    waiting for snapshot control file enqueue waiting snapshot control file enqueue waiting snapshot control file enqueue waiting snapshot control file enqueue waiting snapshot control file enqueue waiting snapshot control file enqueue waiting snapshot control file enqueue waiting for the snapshot control file enqueue waiting snapshot control file enqueue waiting snapshot control file enqueue waiting snapshot control file enqueue waiting for the snapshot control file enqueue can't do a snapshot control file

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03009: failure of command resync to the default channel to 03/11/2014 08:11:19

    ORA-00230: forbidden operation: snapshot controls unavailable file enqueue

    Tried to watch what may now be the queue:

    PROGRAM MODULE ACTION Logon ADDR KADDR TY ID1 ID2 LMODE SID SID ASKS CTIME BLOCK user
    141 SYS rman@hq4dr015343 (TNS V1 - V3) rman@hq4dr015343 FINISHED67 (TNS V1 - V3) 0000003 8 October 14 000000015FCD83E0 000000015FCD8438 141 0 2 4 0 2280088 FC 0

    but he said it's OVER. Any suggestions?

    I have reset:

    CONFIGURE CONTROLFILE AUTOBACKUP ON;

    TO

    CONFIGURE CONTROLFILE AUTOBACKUP

    and then once again changed it back to:

    CONFIGURE CONTROLFILE AUTOBACKUP ON;

    Test ran backups and they ran fine.

  • BlackBerry smartphones unavailable data Services & data of non-operational service

    I have a sim card, but I blocked the internet and I only use WiFi to surf the internet through my phone. And recently, I bought a BB Curve 9300. However, whenever I try to go to BB app world via wifi he'll tell non-operational data and service everytime I try to log in to msn it will say not available data services. My question is, I need data plan to use both apps?

    Hello!

    Indeed, Yes, this is a paid service.

    You can check the activation of the BIS by seeing the "EDGE" symbol on your home screen of your device.

    I hope that solves your problem!

    If your problem has been resolved then would you be asked to click 'Like' and accept as a 'Solution' that other advisors invest it times on this Message more.

    Thank you.

  • 122tu 15 - ac: what Linux/window operating system fully support my computer hp laptop 15 - ac 122tu

    Hello

    I have buy new hp laptop 15-ac 122tu product: N8M18P #ACJ. I got the install window 7 32 bit but faces many problems of pilot. Now, I want to know what linux or other OS is compaitable with this modal which contains all the drivers and software required. Please tell me OS version also directives about the facility.

    Thank you

    It came with FreeDOS, obviously. 32-bit Windows was not a good choice because of the unavailability of the driver and you have equipment that needs to run a 64 bit OS. There is no operating system that will "just work" without any configuration and drivers required. Windows 7 64 bit and more can be implemented with this site downloads and there are so many Linux distributions, it is impossible to discuss together and how to install them. Personally, I use Kubuntu and they just introduced 16.04 (Xenial) Long Term Support which would probably fit with very little after installation system requirements:

    http://cdimage.Ubuntu.com/Kubuntu/releases/16.04/Release/Kubuntu-16.04-Desktop-AMD64.ISO

    This says AMD64, but is also for Intel 64 bit compatible processors which is yours. Download and use a burning program to create the file .iso image on a DVD-ROM finished installation disc and boot from it. Follow the prompts on the screen. If you install Kubuntu only default options works perfectly.

    Let us know if you need more information. Your question calls for a test answer the length of a novel but we'll take it at the same time.

  • iMovie unavailable App - Apple TV 4 Gen

    Hello

    I am trying to connect my APPLETV using iMovie 4th generation.  However, after I downloaded the iMovie application and launched the application, I get the error message

    "The App is not available - this app is currently unavailable, try again later".

    I tried again later, and it still does not work.  I deleted the app and then redownloaded it, which didn't work.  I don't know what else to do, maybe its because I'm operating from the Apple TV in South Korea?  But my older apple tv charges iMovie Theater very well.

    Any help is appreciated.

    Your store is set correctly.

  • can not install the latest version of itunes, get the error msg: "the component you are trying to use is on a network unavailable resource."

    Can not install the latest version of iTunes.  Everytime I try I get this error msg: "the component you are trying to use is on a network resource that is unavailable."

    Then I click OK and get this msg: could not find the path C:\users\my name\appdata\local\apple\apple software update\itunes6464.msi.

    I need to sync my new iPad pro and because used to synchronize requires the latest update, I have my laptop but I never have syncd my ipad with this computer and if I try to backup if I agree to erase everything on my device and sync with the laptop.  Of course, I don't want to do what I want to see everything on the NEW ipad from the old version.

    I went through the troubleshooting and found a solution, but when I had finished making all this trouble report said, there was a pesky itunes shortcut file on the left and I can not delete this shortcut, regardless of how many times I try.  If I can't remove it, the Installation will be terminated.  How can I delete this file?

    For general advice, see troubleshooting problems with iTunes for Windows updates. Start by Missing MSI errors .

    The steps described in the second case are a guide to remove everything related to iTunes and then rebuild what is often a good starting point, unless the symptoms indicate a more specific approach.

    Review the other boxes and other support documents list to the bottom of the page, in case one of them applies.

    More information area has direct links with the current and recent buildings if you have problems to download, must revert to an older version or want to try the version of iTunes for Windows (64-bit-for old video cards) as a workaround for problems with installation or operation, or compatibility with QuickTime software or a third party.

    Backups of your library and device should be affected by these measures but there are links to backup and recovery advice there.

    TT2

  • I'm trying to uninstall iTunes from the PC with Windows 7, but get a message "the feature you are trying to use is on a network unavailable resource." How to get around this? (Apple don't give customer service!)

    For the third time! I'm trying to uninstall iTunes from my PC with Windows 7 Home Edition premium as the statement on Apple's site, but get a message "the feature you are trying to use is on a network resource that is unavailable." I'm then offered a chance to "try again or enter a different path to the folder that contains the package"iTunes6464.msi installation in the box below. " With my limited knowledge, I can't find such a record.

    For general advice, see troubleshooting problems with iTunes for Windows updates. Start by Missing MSI errors .

    The steps described in the second case are a guide to remove everything related to iTunes and then rebuild what is often a good starting point, unless the symptoms indicate a more specific approach.

    Review the other boxes and other support documents list to the bottom of the page, in case one of them applies.

    More information area has direct links with the current and recent buildings if you have problems to download, must revert to an older version or want to try the version of iTunes for Windows (64-bit-for old video cards) as a workaround for problems with installation or operation, or compatibility with QuickTime software or a third party.

    Backups of your library and device should be affected by these measures but there are links to backup and recovery advice there.

    TT2

  • Install Windows on SMU-8133 (with time real operating system already installed)

    Hi all

    I have an SMU-8133 NI with a real-time operating system (OR Real - Time PharLap 13.1). Now I want to install Windows on it and make it dual-boot (I want to keep the original real time operating system). So my question is how do I install Windows without erasing the current real time operating system?

    I tried to just install Win7 (starting from USB) but it says "Windows cannot be installed on disk 0 Partition 1" because she needs NTFS (what we have is the FAT I think). If Win7 is unavailable, Windows XP is also correct, but I still prefer Win7.

    Thank you!

    As a general rule, Windows don't play well with other operating systems installed on a drive, there will be some efforts to preserve the existing installation of RT OS if it is a requirement.  The simplest approach would be to wipe the entire disk, installing Windows and then reinstall LabVIEW RT.

    If you can start from scratch, you must first make sure that the partitioning is correct.  Since you did not purchase this as a Windows / controller dual boot RT initially, you do not have Windows installation media OR, correctly configure the partitions from disk for you.  You will need to do this manually during the installation of Windows.  The best approach is to create two partitions, one for the RT and a Windows.  RT the partition must be the first partition on the disk.  Install Windows on the second partition.  Once Windows is installed, convert the 1st partition to FAT32 using the built in Windows or a 3rd party partitioning tool utilities.  You should now have a system with Windows installed correctly and ready to be fitted to RT.

    Change your SMU-8133 to boot RT using the BIOS Setup menu or hardware DIP switch.  It should boot to safemode RT.  From another host PC, find your target in MAX.

    You can now put your target if you want to switch to the FAT32 file system the system of dependency files.  You can do this through MAX, or by using the utility RT USB key.  See herefor details on this step.

    Warning: Before doing this, ensure a MAXIMUM target shows already the correct amount of disk space for partition 1, you created.  If the RT operating system can see a usable partition (FAT32 or dependency) it will set up only that partition by avoiding to touch the rest of the disc.  If the 1st partition is not used, the formatting process will claim rather all of the disk because no usable partition has been found, and you may lose your Windows installation.

    After that, you can perform the installation of the RT of MAX software as usual.

    If you try to preserve your existing installation, you can try to combine the above process with one of the options available for the creation and restoration of RT disk images, although I am not very familiar with these tools and can not comment or creating an image on a single disk partition and restaurant then a disc multi-partition will be successful.  Here is a good linkto start with which describes the options available.

    -JoshH

  • Unable to connect to wireless error: DNS server your may be unavailable

    Original title: DNS server your may be unavailable

    I can't connect wireless but I not see my wireless network connection signal works well. When I diagnose the connection, it is said that the DNS server may have problems.  My DNS server may be unavailable,

    Please advise me how to solve this issue. Thank you

    Hello

    1 did you do changes on the computer before the show?

    2. which version of the operating system are you using?

    Method 1:

    Check if DNS settings match the settings provided by your ISP.

    To do:

    a. click Start, type ncpa.cpl and press enter

    b. right-click on the connection you use for the local connection, and then click Properties.

    c. click to select Protocol Internet Version 4 (TCP/IPv4)and then click Properties.

    d. check if the default DNS server matches the one provided by your ISP.

    Method 2: Turn off the antivirus

    See the following site:

    Disable the anti-virus software

    http://windows.microsoft.com/en-us/windows7/Disable-antivirus-software.

    Important note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.

  • Unavailable account information in management of quota in server 2008

    Hello

    I set it up in windows server 2008-management of Quota.

    Some how my server was out of service. I reinstalled the operating system, configure the domain, create users.

    I have also to enable quota management and that you assign users to there. but some how the unavailable content matters are in the management quota.

    hope the prompt on his suggestions.

    Thanks in advance...

    Post in the Windows Server Forums:
    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer/

  • When configuring activesync, I get the error "network unavailable synchronization." I am able to access OWA

    I use Samsung Corby mobile phone. When I'm trying to set up active sync, it gives me error like "network unavailable synchronization." I am able to access OWA on my PC. I checked and there is no problem on the mobile Internet, because I'm able to visit other sites. Few details may help you to answer the question:

    Mobile model: Samsung Corby

    Model number: GT-B5310

    ISP: AIrtel

    This is the 1st time I'm trying to configure activesync.

    I visited a few items and they reported similar problems from other models of Samsung too. I visited the link: http://www.google.com/support/forum/p/Google%20Mobile/thread?tid=02a84b0b183aa54a&hl=en

    Does this mean that I have to change the handset or samsung is not recomnmended for Activesync?

    Hi Sandeep Singh,

    1. which version of the operating system is installed on your computer?

    2. what version of ActiveSync are you using?

    ActiveSync application is used for faster file transfer and synchronization of photos via Outlook are available for Windows Mobile 5.0 powered devices.

    I suggest you to consult the following link to learn more about Active Sync.

    http://www.Microsoft.com/download/en/details.aspx?ID=15#overview

    I suggest you to contact Samsung support for more information.

    http://www.Samsung.com/us/support/#

  • Impossible to uninstall microsoft silverlight (unavailable resourses). This closing of security software. help ASAP

    am my security operating system not up to the date of notification. is attended safe site and sent to the updates from microsoft. advised to download microsoft silverlight

    (2 versions) download failed because of unavailable resources and try again. tried to uninstall silverlight, but failed. resources not available. notied I'm still you inform that my security needs updated. site security informs me no update is necessary. This must be fixed. seems that nobody at microsoft can help.

    Hi td824,
     
    Uninstall Silverlight by following the steps listed in the link given below:
     
    Once you uninstall, download and install Silverlight by visiting the following link:
    If the procedure described here does not help, post your request in the Silverlight Forum for better support.
  • Want to m6-k088ca: m6-k088ca tea spilled want fried HARD drive. try to load the operating system on the new drive HARD get no found boot device

    Hi I want to m6 - k088ca it came with Windows 8, I've updated to 8.1 has a 64-bit operating system. I spilt tea on it and fried hard drive.

    Try to save money I bought a 500 GB hard drive instead of a 1 TB of HDD, it can with. Install it and then through the process to implement the recovery program and try to load the image of the system on my USB key. Recovery program did come and I tried to load the System Image to my USB disk hard nine, but nothing happened.

    I have only kept getting no device found startup message after the attempt to load of the System Image. Discover your forum, I discovered that I could not use the Image of the system on nothing less than what was originally on my computer a 1 TB hard drive. So, I went out and I tried to install Image system on it. I was unable to implement the recovery program I had before. I went to the boot options and he set up to boot from the key USB didn't keep get no boot device found message. After trying several different ways to do it, I made a test drive and kept getting unavailable message. I've reset the hard drive wiped clean all connections and was still unable to do a hard drive test, so I assumed that there was something wrong with the hard drive has returned to where I got it from. Then went to another bank and picked up another.

    First thing I did was a fast hard drive test and it happened.

    I tried to install e system on nw HDD image with no luck. I have never been able to implement the program of recovery since that first time. With the help of your forum, that I have que j' ai tente tried to load my picture of the system a couple of different ways but get no found boot device message.

    Have I may have something to corrupt the system on my USB key Image trying to download it on a smaller hard disk?

    I went to the view of Windows and try to download Windows 8 on an another USB and then tried to download it and continue to spread the message no boot device found. I tried this download on my g6 HP Pavilion with Windows 7 64 bit operating system. This is why it did not work because I use a computer with Windows 7 and not Windows 8?

    Thanks Bill

    Hello:

    See if you make your own plain W8 x 64 installation media works for you...

    Download the ISO W8...

    https://docs.Google.com/file/d/0B0W9PBigPy94aVJWSndyTFNFMzg/edit?PLI=1

    Then use this tool to make the file iso bootable on a 4 GB + DVD or USB flash drive

    http://www.Microsoft.com/en-us/download/Windows-USB-DVD-download-tool

    If you install via a DVD, you must go into the BIOS, turn on legacy mode and disable secure boot.

  • Error loading operating system

    Hello

    Today my computer crash with the following error

    stop: 0xe000008e (oxe0000001, oxae313925, oxa3cd26f8, 0x000000

    Watchdog sys address ae313925 baseae3130000date stamp 48025yab

    so I restarted and now I get the error loading operating system

    I use a computer I built myself... I'm not a person irritable, I build them, but cannot fix them :(

    I have win xp sp3

    WD 400 GB hd

    2 GB memory

    card mother MSI p45 neo, with the latest version of the bios updated

    I also have a disk external wd 500 GB fixed

    I've seen on several different sites that I use the xp disc and repair.

    I have a win 7 cd I want to upgrade

    is there a way I can get software thati product codes have a setup that I don't have the disc or product key for

    from my pc or is it toolate

    OK in safe mode on admin, I got this after having typed sfc /scan now

    Windows file protection could not initiate a scan of protected system files

    the specific error code is 0x000006ba [the RPC server is unavailable

    Insert the installation CD before running the above command. If the installation path have changed since the initial installation, then you have to modify the source pathfor SFC can find the installation files.

    http://smallvoid.com/article/Winnt-SFC.html

    Have you implemented the resolutions contained in this document?

    http://support.Microsoft.com/kb/296241

    Try to apply the advice of the great system-

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-system/SFC-Windows-file-protection-could-not-initiate-a/d871c1ad-0B96-4403-aa1f-086fe6403b28

  • Windows Installer error, "the feature you are trying to use is on a network resource that is unavailable."

    When I try and open Adobe or something like excel, word etc I get message from installer of windows that appears and says "the component you are trying to use is on a network unavailable resource.  Click OK to try again or enter a different path to the folder that contains the package of facilities "Acro Stan.msi" in the box below. I have no idea how the problem

    Original title: windows install message acrostan.msi

    Hello

     
    I suggest you to follow the steps and check if it helps.
     
    Method 1: Unregister and register the Windows Setup program again
    (a) click Start, run, type MSIEXEC /Unregister. and then click OK. Even if you do it right, it may seem that nothing is happening.
    (b) click Start, click Run, type MSIEXEC/REGSERVER, and then click OK. Even if you do it right, it may seem that nothing happens, or you can briefly see an hourglass. After you run this command, the operation is complete.

     
    Method 2: Install Windows Installer 4.5 and check if it helps.
    Windows Installer 4.5 is available

Maybe you are looking for

  • Sleep seems to work, but does not (iPad 2)

    For years, my iPad 2 (9.3.5, 32 GB iOS) went right to sleep when I close the magnetic lid. (It's a Yoobao coverage.) Battery would not be overturned while he was sleeping, and everything was fine.Now in the past couple of days, even if it seems to go

  • iPhone Mobile SE data problems

    I just bought an iPhone SE and wanted to disable cellular data for application specific i.e. Facebook and a weather app. But it only allows me to disable data for native iOS applications. Anyone know how I can disable data for other applications? Tha

  • Media Player 11 sound jerky at the end

    I have Media Player 11 on my computer, and any time I play a MP3 song with it, from a file stored on my computer, the last 15-20 seconds of it the sound is still choppy, as is cutting in and out.  The rest of the song comes in clear weather and witho

  • Sublayout to dynamically update running

    I used Sublayout of HorizontalFieldManager to place some pictures... I want to dynamically change the number of items added in sublayout (sometimes add and remove sometimes some item)... How can I achieve this?

  • InDesign: Conditional text

    I'm using conditional text, and has highlighted a large number of things. I intend to remove the highlight but seem to be rather deleted all the text which has been replaced by red arrows. I saved the document without noticing. Can we retrieve the te