Bring Excel 2007 to the front when called from LabView v9 in Windows 7

I am building a duplicate system using Windows 7, LabView v9 and Excel v2007.  The original system used WinXP, Excel 2007 and LabView v8.6.  The issue is that the original system was able to bring Excel to the front when called from Labview using the property node -application-> visible.  This new configuration runs Excel, loads the data, runs the macros but does not bring Excel to the front.  The icon blinks in the Win7 taskbar and when selected displays over LabView.  If I minimize the Labview window, Excel is there.  This leads me to conclude that Excel is visible, as requested but will not come to the front until selected from the taskbar.  The only differences, besides the versions, is the original system template files used the .xls extension in and was run in Excel in compatible mode.  At the customers request, the new system uses the .xlsm extension on the Excel template files.  I have tried using application.visible = True in the macro as well.  Could be a setting in Labview?  Could be a setting in Excel? Could be .xls vs. .xlsm? Or an issue with Windows 7 and the newer version of Labview. 
HP workstation - Labview v9 - Windows 7 - Excel 2007 sp2
Thank you in advance
Stephen
Solved!
Go to Solution.

I will try the windowstate change.  Were these done in succession? (i.e. property node -> property node -> property node) Or were they done along the way such as call the ActiveX open and a property node then in a worksheet modification area etc. so there was some time between calls? 
I am not sure about the API since the discussion there is with regard to DDE.  (Taken from the link document:  If you want to call a DLL that contains ActiveX
objects, use the Automation
Open VI with the Property
Node and the Invoke
Node.).  I am calling Excel as an application not as a library call unless I am mistaken, which I could certainly be.  Are you thinking that once Excel is active through the Automation Open VI that a DLL call to set the application visible would work?  I may be trying this already but in Excel through the use of the macro I call from LabView.  It contains application.visible = True at the beginning before reading files and plotting data.  
I may try sprinkling Property node with application->visible in various locations in the LabView diagram as I do update cells after the call to the plot macro.  The puzzle for me is the blinking Excel icon in the task bar.  This means active and running but not visible or something wrong as well.  There are a few #VALUE cells if not all test in the system are run.  Again not a problem in Excel 2007-WinXP-LV8.6
Thank you again one and all.

Similar Messages

  • Can I get the Write window in the foreground when called from another application?

    When windows applications create a new message through thunderbird (quickbooks wants to send an invoice for example) the new message appears in the background and bothers the user who prefered the way outlook would pop up newly created messages in the foreground. The foreground popup is the preferred work flow as the operator clicks 'send invoice' and then the message pops up for review and for the operator to hit send. Now migrating to Thunderbird, in frustration the user is creating many drafts but not always sending the invoice.
    How can I set Thunderbird to popup a new message window in the foreground in this case?
    Thanks in advance.

    Hi, I have the same problem, any version of TB, win7x64 or winXP32... for me is not a problem, but less experienced users, or old people, get puzzled by not seeing the expected window, and usually keep trying, ending with multiple "compose" windows, until they realize they're open in the background...
    I'm trying to get around this using a small free utility I already have in my windows startup folder: Deskpins (see http://www.snapfiles.com/get/deskpins.html). This little app, which sits in the taskbar icon area, can force any window stay on top, (visually) "pinning" it also. Very handy. This little gem also has an optional "autopin" feature, which can "intercept" a new window by class & title (with wildcards). Which windows to intercept,y ou define creating specific rules, from its help:
    <<
    You can configure DeskPins to automatically pin certain windows as soon as they are created. This should be useful in case you always want to make an application topmost (e.g. Calculator, console windows, etc).
    Rules
    You can specify which windows will be auto-pinned by adding auto-pin rules (see Autopin options). Every time a window is created, DeskPins will check whether it satisfies any rules, and if so, it will pin it. A rule consists of two parameters: a title and a class, which are explained below. Both parameters can contain DOS-style wildcards (* and ?) and they are not case sensitive.
    >>
    I tried, and it seems to work.
    when a new "compose" window is created, even when "sending a file to recipient" using windows standard tools (eg: right click on file and send>mail recipient) now I see the window "on top" and is "pinned"... of course it would have been much, much better to have a native better behaviour, but in the meanwhile... this could work. Maybe similar solutions are available for other OSes...
    Marco

  • Adobe soundbooth cs4 hangs when called from premiere cs4 in windows 7 64 bit

    Whenever I try to edit a soundfile from within premiere cs4 Soundbooth starts and then hangs on my Windows 7 Pro 64-bit machine; works fine in XP pro.

    I discovered the problem only occurs once I try to open an mp3 file in Soundbooth CS4 from within Premiere CS4 and Sounddbooth is not already running.  
    If I open Soundbooth before I try to open an mp3 or any sound file in Soundbooth CS4 from within Premiere CS4 then there are no problems.  So the workaround is easy: start Soundbooth before I try to edit soundfiles form within Premiere.
    Question: are you using 64 bit Windows 7?

  • Subtemplate footer is not coming when calling from the main template

    Hi All,
    The footer from the subtemplate is not coming in the output when calling from the main template. Does anybody worked on the subtemplate?
    If the same footer is put in the main template, it is displaying.
    Please respond as this is a critical issue for us.
    Thanks,
    Ambadas

    Hi Tim,
    Thanks for your reply. Here is syntax which I got from the Oracle BI Publisher blog. And this is to just test locally.
    http://blogs.oracle.com/xmlpublisher/2006/04/11?import:file:///C:/temp/HeaderFooter.rtf
    <?import:file:///d:/test/GEPOPRINT_GER_GER.rtf?>
    <?import:file:///d:/test/GEPOPRINT_US.rtf?>
    <?for-each@section:G_HEADERS?>
    <?if:POH_REPORT_NAME='GER PO w/GERMAN Data'?>
    <?call-template:PO_GERMAN?>
    <?end if?>
    <?if:POH_REPORT_NAME='US Purchase Order'?>
    <?call-template:PO_US?>
    <?end if?>
    <?End for-each?>
    And I don't have any footers in the main template but in the subtemplate I have the respective footers. If you want, I can send all the RTF's to you directly.
    Let me know.
    Thanks,
    Ambadas

  • Excel 2007 ignores the roles configured on SSAS 2008

    Hi,
    I am facing a common problem for which I have found very useful threads but they didn't manage to help me.
    My problem is on excel report, Dimension data is not filtering correctly when I connect with user credentials for which a role is configured on the cube. Excel 2007 ignores the roles configured on SSAS 2008 and I tested with 2 different users with the same
    role configuration.
    I ensured that the user doesn't fall in the server admin role and . I started up an SQL Profiler and I ensured no  * in the list of roles of the user.  I ensured also that there is no "built-in administrators group" configured (Security\BuiltinAdminsAreServerAdmin).
    http://social.technet.microsoft.com/Forums/sqlserver/en-US/7052f751-8478-4ab2-aba8-d250a1606e07/deny-access-to-analysis-services-cube-from-excel-2007
    Also I am planning to upgrade my Service Pack 1 to the cumulative pack Hot Fix 2710 ( KB969099 ) as it seems there are some known issues about dimension security on SSAS 2008. Do you really think it is a question of upgrade?
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/4b4e6e3c-bebe-4f81-8462-b2d0bd61ad11/dimension-attribute-security-on-ssas-2008-not-working-but-works-fine-on-2005
    However I managed to work around the issue on SSAS and on Excel as follow but it is the not the solution expected: 
    - On SSAS 2008 R2 cube browser, while testing using the role: Dimension values filtered correctly the required data 
    - On Excel: Unless the role is specified in the configuration of the connection then the data is not filtered.
    http://kevin_s_goff.typepad.com/kevin_s_goff_weblog/2009/12/1242009---testing-ssas-roles-in-excel.html
    It is really urgent,
    Many thanks

    Hello,
    I'm experiencing exactly the same issue and I can't find any solution to it.
    Were you able to solve it? If so, how did you do it?
    Thanks!!!

  • Set the default field value to transaction code field, when calling from WD

    Hi all,
    Can we pass the value in a input field of a standard transaction calling from WD application. Suppose we are calling a transaction VA03 in an external window, then how will be pass the value in the VBAK_VBELN screen field.
    Is there any way to pass the value to this transaction field. I have also tried out to set the parameter ID 'AUN' for VA03 transaction VBELN field. But it did not work for me.
    Is there any way to set the default field value to transaction code field, when calling from WD?
    Please suggest, if anyone have any idea.
    Thanks
    Sanket

    Hi,
    I am using the below code to open a standard transaction. It will help you to explain my point more easily.
    DATA: url TYPE string,
              host TYPE string,
              port TYPE string.
    *Call below method to get host and port
      cl_http_server=>if_http_server~get_location(
         IMPORTING host = host
                port = port ).
    *create URL
      CONCATENATE 'http'
      '://' host ':' port
      '/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction=' 'VA03'
       INTO url.
    *get the window manager as we are opening t code in external window.
      DATA lo_window_manager TYPE REF TO if_wd_window_manager.
      DATA lo_api_component TYPE REF TO if_wd_component.
      DATA lo_window TYPE REF TO if_wd_window.
      lo_api_component = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
    call the url which we created above
      lo_window_manager->create_external_window(
      EXPORTING
      url = url
      RECEIVING
      window = lo_window ).
      lo_window->open( ).
    Note*
    One more query I want to add to this thread, that is there any possibility to call a custom transaction as well?

  • How do I bring form fields to the front or back?

    I have a document with many form fields/push-buttons in order to create pup-up effects in an info graphic.
    So I use fields to create a mouse-over hot spot, and others that pop up. Now, of course, the hot spot must be in front (or on top), otherwise it gets distracted in it's mouse-over function by the popped-up object (image) that lays over it. (The result would look like a flashing effect, as you roll over the hot spot.)
    Now how do I arrange the fields?? Ich can arrange images and texts to come to the front or hide behind other objects. But in the form field editing mode there is no such option. Also it doesn't work to just cut and paste them, they re-appear in their former position, often behind the other fields.
    Please, help! Thanks, Peder

    Thanks, I will give it a try. To "recieve the focus" means being activated / hovered?
    Am 22.04.2015 um 18:49 schrieb George_Johnson:
    How do I bring form fields to the front or back?
    created by George_Johnson in PDF Forms - View the full discussion
    The tab order effectively sets the z-order, but if a field is not read-only it will be set to the front if it receives the focus.
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7465780#7465780 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7465780#7465780
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"
    Start a new discussion in PDF Forms by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.
    ···)····•  Blixen
    werbliche Kommunikation
    Peder Iblher  .  Wichertstraße 16/17  .  10439 Berlin
    Telefon 030 - 250 400 401  .  Fax -409  .  Mobil 0160 - 93 81 58 60
    [email protected]  .  www.blixen.eu  .  www.facebook.com/blixen.eu

  • Why won't my Razr Maxx ring when called from my home phone or the other cell phone (I-phone) on my Verizon account?

    Why won't my Razr Maxx ring when called from my home phone or the other cell phone (I-phone) on my Verizon account?

    Hi Ruth:
    Thanks for reaching out to me about this issue.
    This has been happening since I got the phone a couple of years ago.
    I did not realize that my home land line and my wife's cell phone
    always go straight to voice mail until my wife pointed it out to me
    several months ago.  Is there a setting I can adjust?
    Yes, I can make calls to our home land line and to her cell phone
    without being diverted to voice mail.
    Any advice you might have would be most welcome.
    Thanks.
    Greg Bostwick
    On 12/22/14, Verizon Wireless Customer Support

  • How can I turn off the phone saying "Call from" #/name when getting incoming call.

    How can I turn off the phone saying "Call from" #/name when getting incoming call before the ring tone starts?  I have a LG accolade

    I recommend checking your  prompts and alerts to turn this feature off. This may be you "Call Connect" or "Readout" alerts. Listed below are steps to update this feature. 
    With the flip open, press the Voice Command Key (on the left side of the phone).The Voice Commands feature has several settings which allow you to customize how you want to use it. Access Voice Commands, then press the Right Soft Key[Settings]. Your choices are below:
    -Confirm Choices--- Automatic/Always Confirm/ Never Confirm
    -Sensitivity--- Control the sensitivity as More Sensitive/ Automatic/Less Sensitive
    -Adapt Voice ---If the phone often asks you to repeat voice command,train the phone to recognize your voice patterns.Train Words/ Train Digits
    Prompts ---Mode/ Audio Playback/Timeout
    * For Mode, set Prompts/ Readout+ Alerts/ Readout/ Tones Only.
    * For Audio Playback, set Speakerphone or Earpiece.
    * For Timeout, set 5 seconds or 10seconds.

  • About the delay when calling Player.start()

    How to eliminate or reduce the delay when calling Player.start()? Can someone kindly give some suggestions about the issue? Is that right the more small size of the media file, the more small delay? Can the delay be eliminate?

    I think my expression is not clear enough, I rewrite as followed: How to eliminate or reduce the canvas repainting delay when calling Player.start(). The media playing does not delay, but the canvas repainting have a serious delay.

  • The problem by hearing my voice when calling from iMAC

    I use the latest version of OS X and iOS on all my devices (OS X and iOS 8.1.1 10.10.1). The receiving calls through iPhone 5 have a problem with hearing my voice when calling from iMAC. When make incoming, but also outgoing call through iPhone5 on my iMac, I can hear the caller, but he can not hear me, although tilde see sound when I speak to your iMac.
    When the call using my iMac I can hear the caller, but he's not me.
    MacBook Air while everything works smoothly, there hear me. You do not know me with this please help?
    Thanks

    Yes, my microphone works correctly, f.e. skype, record spund for my videos... no problem with microphone on my iMAC

  • 'ORA-06502 character string buffer too small' when called from C# app

    I have researched this problem and checked my variable sizes over and over again. I have tested the procedure within the Oracle Express environment and it works fine; HOWEVER, when the procedure is called from my C# app it produces the ORA-06502 error.
    The stored procedure signature looks like this...
    create or replace save_new_project (p_custorgid in number,
      p_title in varchar2,
      p_AOIName in varchar2,
      p_description in varchar2,
      p_receiveddate in date,
      p_deadlinedate in date,
      p_startdate in date,
      p_createddate in date,
      p_createdby in varchar2,
      p_projectid out number,
      p_statustypedescrip out varchar2)The OracleParameter in my C# app for the last out param is defined as such...
    cmd.Parameters.Add(new OracleParameter("p_statustypedescrip", OracleDbType.Varchar2, 30, ParameterDirection.Output));As I said at the beginning of this post, the procedure works fine in the Oracle environment. So why is it not working by simply calling it from C#? I've tried changing the OracleDbType to CLOB which eliminates the error but it returns a bizarre result. It returns this string, "Oracle.DataAccess.Types.OracleClob". WTH?!!
    Since CLOB doesn't really work either I switch back to Varchar2 and specify a size of 5000 (in the database the field I am querying is defined as Varchar(30)). I still get the ORA-06502 error.
    I am clueless as to what the problem is. It should work and it does if I run a series of SQL statements in an Oracle SQL Command window. The test that works fine looks like this...
    declare
      v_projid projects.projectid%type;
      v_statustypedescrip projectstatustypes.type%type;   /* this is a varchar(30) */
    begin
      save_new_project(2, 'Some input text goes here', 'More input text', 'And more again','26-APR-2007','26-APR-2007','26-APR-2007','26-APR-2007','users name as inpujt text here',v_projid,v_statustypedescrip);
      dbms_output.put_line('v_projid = ' || v_projid);
      dbms_output.put_line('v_statustypedescrip = ' || v_statustypedescrip);
    end;But calling save_new_project from C# throws ORA-06502. It identifies line 40 of my stored procedure. This is line 40...
    p_statustypedescrip := v_statustypedescrip;

    Problem solved!!!
    I don't know why this worked but it did. I changed how I declared the output parameter in my C# app. I used to have it on one line like this...
    cmd.Parameters.Add(new OracleParameter("p_statustypedescrip", OracleDbType.Varchar2, 30, ParameterDirection.Output));but then I changed it to multiple lines like this...
    OracleParameter prm11 = new OracleParameter();
    prm11.ParameterName = "p_statustypedescrip";
    prm11.OracleDbType = OracleDbType.Varchar2;
    prm11.Size = 30;
    prm11.Direction = ParameterDirection.Output;
    cmd.Parameters.Add(prm11);I don't know why it works this way but it does and that's all I care about.

  • [svn:fx-3.x] 5072: Bug: LCDS-636 - None of the responder get called from the createItem

    Revision: 5072
    Author: [email protected]
    Date: 2009-02-25 13:27:34 -0800 (Wed, 25 Feb 2009)
    Log Message:
    Bug: LCDS-636 - None of the responder get called from the createItem
    QA: Yes (LCDS QA)
    Doc: No
    Checkintests Pass: Yes
    Ticket Links:
    http://bugs.adobe.com/jira/browse/LCDS-636
    Modified Paths:
    flex/sdk/branches/3.x/frameworks/projects/rpc/src/mx/messaging/ChannelSet.as

    If you create a metadatatype with a single metdata block, and you reference that in your vm/cm cell attribute using a *one* based index, Excel seems to see the link and it honors it when saving the spreadsheet.
    So, I ended up with something like:
    <c ... cm="1"/> (I'm dealing with cell metadata, but the concept is equivalente to value metadata)
    <metadataTypes count="1">
      <metadataType name="MyMetaType" .../>
    </metadataTypes>
    <futureMetadata count="1" name="MyMetaType">
      <bk>
        <extLst><ext
    uri="http://example" xmlns:x="http://example"><x:val>87</x:val></ext></extLst>
      </bk>
    </futureMetadata>
    <cellMetadata count="1">
      <bk><rc
    t="1" v="0"/></bk> <!-- this is what gets referenced as cm=1 on the cell -->
    </cellMetadata>
    Hope this helps. 

  • ActiveX can't create object when VB Script called from Labview

    I have an interesting issue that I can't find a solution for. I am using the DIAdem Run Script.VI in Labview to call a script that opens an Outlook object and sends an email. When the script is called via LabView I get this error:
    However, when I manually run the script from the DIAdem script tab it works as expected with no errors.
    This is the code:
    'Begin email send function
    Dim oOutlookApp
    Dim oOutlookMail
    Dim cnByValue : cnByValue = 1
    Dim cnMailItem : cnMailItem = 0
    ' Get Outlook Application Object
    Set oOutlookApp = CreateObject("Outlook.Application")
    ' Create Mail Item
    Set oOutlookMail = oOutlookApp.CreateItem(cnMailItem)
    ' Set Mail Values
    With oOutlookMail
    .To = "[email protected]"
    .Subject = "Report: " & Data.Root.ActiveChannelGroup.Name & " for " & CurrDate
    .Body = "test automatic report emailing with VB Script."
    ' Add Attachement
    Call .Attachments.Add(strLocFileName, cnByValue, 1 )
    ' Send Mail
    Call .Send()
    End With
     (Original code includes Option Explicit and all variables are properly included/declared, I just took the snippet of what's causing the error).
    I have looked at the following threads for info already:
    http://forums.ni.com/t5/DIAdem/Some-errors-when-calling-LabVIEW-VIs-Interactively-from-DIAdem/td-p/2...
    http://forums.ni.com/t5/DIAdem/Active-X-component-cannot-create-object-Diadem-8-1/m-p/71212/highligh...
    -I tried running the script via Windows explorer (per Brad's suggestion) by itself without the DIAdem specific functions and it runs fine.
    http://forums.ni.com/t5/DIAdem/Error-while-runing-diadem-asynchronous-script-from-labview-on/m-p/111...
    -I am not running the scripts asynchronously
    Using Windows 7 (64bit), DIAdem 11.2 and LabView 7.1.1
    Thank you.

    Hey techerdone -
    I'm afraid I personally can't be of much help - I tested your code both from DIAdem and from LabVIEW and each worked without issues in both cases (Outlook closed, Outlook open).  I'm using DIAdem 2011 SP1, LabVIEW 2011, and Outlook 2007...
    Derrick S.
    Product Manager
    NI DIAdem
    National Instruments

  • Stored Procedure Does Not Run Properly When Called From Portlet

    We have a simple Java portlet that calls a PL/SQL stored procedure which we wrote. The stored procedure sends a large number of emails to users in our corporation using the "utl_smtp" package. The stored procedure returns a count of the emails back to the Java portlet when it's finished. This number is displayed in the portlet.
    Our problem:
    The stored procedure functions as expected when run from a PL/SQL block in SQL*Plus, and the Java portlet calls the procedure properly when sending out a smaller number of emails (Less than 200 usually). When we get into a higher number of emails the procedure hangs when called from the portlet, but it STILL functions properly from SQL*Plus. It does not return the number of emails sent
    and the Java portlet is unable to return a SQLException. Also, we have noticed that emails are sent at a much slower pace from the stored procedure when it's called from the portlet.

    Any Ideas?

Maybe you are looking for

  • User input prompt in CASE statement

    I would like to obtain user input via a prompt and use what the user selects in my OBIEE Report case statement. For example &START_DATE AND &END_DATE are user inputs: CASE when SHIP_DATE BETWEEN &START_DATE AND &END_DATE THEN 1 Thanks

  • Delete PO with clicking ELIKZ (final delivery) is logic?

    Hi, Deleting PO with clicking ELIKZ (final delivery) is logic..

  • Which volume to repair permissions?

    Perhaps this is a dumb question -- but there are none of those, right -- but which volume do I select when I repair permissions? There are two there. One says Macintosh HD (Mac OS Extended Journaled) the other says 37.3 GB Fujitsu MHT20. I usually do

  • Why won't my messages sync on both my iphone and ipad?

    Since I've installed the latest software update for my iphone 4 and ipad 3 my messages are not syncing with both devices.  Today for example I had a message sent to me at 2pm that went to my ipad (which was at home) instead of my phone. Does anyone k

  • P205D-S7438 rest to Factory condition

    Hi Folks, I have a P205D-S7438 Laptop and I decided to reset my laptop back to a factory condition. However, I first formatted the C: drive thinking I could use the recovery CD of Vista but I get an error when using that option and won't install. I h