ActiveX puzzle: How to close/clea​nup IWebBrowse​r2 [Excel] Document?

Hello!
      Attached is a simple VI that uses the IWebBrowser2 (ActiveX) control to display an xls file.
The problem is that I need to access the IWebBrowser.Document property, but that causes Excel to stay open.
Run the VI with boolean=False and Excel will appear in the task manager for about 2 seconds.
Run the VI with boolean=True and Excel stays open indefinately (that is, until LabVIEW is closed).
Please help me figure-out how to get Excel to close!
Thanks in advance.
Attachments:
ActiveQuestion.zip ‏24 KB

Hi nyc,
nyc wrote:
Excel closes for me whether the Excel Open/Close is either true or false. There is not a residual Excel application running in Task Manager.
There are other ways to obtain the document properties of Office properties without going through all this gyration, but without knowing what you are trying to achieve it is hard to continue.
Good luck! 
The problem comes when trying to use one of those "other ways" to update the sheet while IE is running a second instance of Excel which is also showing the sheet.
Try it.
It's curious that the problem doesn't happen for you - can you change your copy to NOT close the ActiveX Workbook ref?  That should force Excel to stay open.
NI may have changed resource cleanup between 2010 and 2011, keeping the VI running might prevent Excel from closing - for TRUE case - on your platform.
Cheers!

Similar Messages

  • How to close the object after generation Excel file

    I have generated excel file. I save that file using "Save" button on dialog-box. After i go to menu navigation at that time i got javascript error.
    please give me the solution how to close objects after generating excel file.

    Hi,
    Pls don't forget to reward points and close the question if you find the answers useful.
    Eddy

  • How to turn a pdf file into excel document and keep original format

    I Have an excel bid form that i use all the time ,then i convert it into a PDF  And once in a while i need to add something to it  I paid for acrobat but when i try to turn the PDF back into an excel document the format is changed , the columns are in the wrong places And it does not look at all like the original excell form is there any thing i can do to  fix this If not this will be useless to me  any help appreciated

    A PDF does not contain any spreadsheet, word processing or page layout file format information.
    No "format", columns, rows, etc.
    "When you create a PDF, you’re painting a picture. Your paintbrush is the is the result of a combination of the software used to create the source document and the software you’ve chosen to convert your source document into the universal electronic document format we all know as PDF.
    Like the painter’s brushstrokes, each character, each line and each image is fundamentally independent, but they can interact with each other to produce particular visual effects. On the PDF page, objects are connected by a coordinate system and not a lot else. There’s no logical, semantic connection between the letters comprising a word; characters simply happen at a series of locations on the rendered page.
    As originally designed, PDF is fundamentally a system for painting objects onto a page, plus a whole lot of other features we aren’t talking about right now! There’s no innate concept of words, sentences, paragraphs, columns, headings, images, tables, lists, footnotes – any of the semantic structures that distinguish a “document” from a meaningless heap of letters, shapes and colors. PDF is fundamentally about how the document appears on the page, not how it looks when abstracted from the page."
    Duff Johnson, Each PDF Page Is a Painting
    http://talkingpdf.org/each-pdf-page-is-a-painting/ 
    Be well...

  • How do I open a multi-tab excel document in numbers?

    New mac for Christmas!
    I am reluctant to instal MS Office and am willing to try out Apples programs. Only major issue is I cannot open my multi-tab workbooks that I created in Excel. I use them daily. Is there anyway to open them? Does the Numbers program have tabs si

    What have you tried?  I generally drop the excel file on the Numbers icon in the doc.
    If you want the files to remain excel files you should get excel.  If you are ok transitioning to Numbers give it a try.  Numbers will export to excel once a file is open but does NOT natively save excel files.
    You can also try OpenOffice or LibreOffice for free.

  • How to create Thumnails images of word/excel documents

    Hi Experts,
    I need java code which can generate thumbnail images of any Word/Excel document.
    I have found code related to creation of thumbnail of any JPEG image.
    Please help me out on this issue. Your suggesions are also appriciated

    Hi i dont know,but you can giave a look to Jakarta POI that can have a awt preview for Excell document,or you can try to replicate your document with Jasper,design a pdf like your word or excell document , and use the AWTPreview.
    Are only suggestion!

  • How To open a MS Word/Excel document using Java

    How do i open a MS-Word/Excel document using Java Code.

    Get SDK (which is freeware) at
    http://www.simtel.net/product.php?id=60701&sekid=0&SiteID=simtel.net
    http://shareware.pcmag.com/product.php?id=60701&SiteID=pcmag
    http://downloads.suntimes.com/product.php?id=60701&SiteID=suntimes
    There you will find examples for MSWord and Excel (example sources are packed with binaries).

  • How to close extended classic PO in ECC...

    Hi Friends...
    We are in SRM 7.02 and ECC 6.05 in Extended Classic Scenario. One PO had been created for 1 Quantity 3 years ago. There was no GR/IR document posted against that PO. Now that PO had been archieved from SRM. But still PO is available in ECC with open quantity and also its appearing in the open PO report. Now requester wanted, the PO to be closed in ECC and shouldnot appear in the open PO list.
    How to handle this situation.. How to close the extended classic PO in ECC at this scenario. As PO not available in SRM, we can not do anything from SRM side.
    Your inputs are appreciated....
    Regards
    Sivakumar Kandasamy

    Hi Sivakumar,
    If you mean how to archive PO in MM side, please refer to the following info:
    ====
    In ECC system, if you want to archive a MM PO, please use transaction
    SARA->archive object MM_EKKO.
    456129 FAQ: Archiving in purchasing
    401318 Archiving: Additional information
    ====
    If you want to delete this ECC PO, please use BAPI_PO_CHANGE and
    refer to the following test data:
    Parameters:    PURCHASEORDER      =  XXXXXXXXX
    Parameters:    POITEM
    PO_ITEM                        = 00010
    DELETE_IND                     = X
    Parameters:    POITEMX
    PO_ITEM                        = 00010
    PO_ITEMX                       = X
    DELETE_IND                     = X
    You also need to run BAPI_TRANSACTION_COMMIT after BAPI_PO_CHANGE for updating the change.
    Regards,
    Ivy

  • After the update I don't know how to close running apps? I recall double clicking the main button then hold one app until they begin a jiggling motion. But that no longer works.

    How do close running apps?

    You still double tap the home button and the apps are lined up across the screen. Swipe up on the app preview thumbnail - drag it up off of the screen - and that will close the app.

  • How to close iOS7 apps?

    Prior to iOS7 you simply double clicked the home button to show open Apps and you could then close them all down.  That doesn't seem to happen with iOS7.  Any idea how to close open Apps?
    ... The learning curve beings

    Thanks ...
    That's what I was trying, but I guess I was doing so to quickly.  Once I slowed down they finally moved.  Now ... if the former Apps wouldn't crash I'd be all set, ROFL.  Going to be a learning curve for the developers as well I think.
    So much to learn

  • How to close a frozen warning: I am unable to close the "charicter boarders aren't supported and were removed" warning on my pages. Untill warning is closed I can not save my document. How can I get my document saved?

    I have an unsaved document open in pages but can not save it because the, "charicter boarders aren't supported and were removed" warning is open and I can not close the warning. How can i get the warning to close so I can save my document? Can I save the document without closing the warning?

    Probably not, but as you will have been unable to make any changes to the document with that warning window open, you're not going to lose anything by quitting (or force quitting) without saving. You'll still have the original document you were trying to import.
    I would suggest attempting to open the document in one of the open source Office applications, LibreOffice, Apache OpenOffice, or NeoOffice, each available for download from the linked sites. Once open there, remove the attributes that are causing the warning, save the file (as an MS Word document), then try opening that version in Pages.
    Regards,
    Barry

  • Can anyone advise how to close apps on iPad with new iOS? I have multiple open and cannot close them.

    Can anyone advise how to close apps with the new iOS?  I have multiple open and cannot close them

    Double-tap on the Home button. You will see a preview of the app above the actual icon. Slide the preview up to kill it.
    Please get the iPhone User Guide (For iOS 7 Software)Sep 19, 2013 - 23 MB.

  • How to close sidebar under ios 8 in order to use the whole screen for reading?

    How to close sidebar under ios 8 so that i can have the full screen for reading?

    Sidebar where?
    In Safari?Tap on the Blue open book icon at the very top of the screen. There are two such icons, it is the one on top you want to tap to close the sidebar.

  • How to close email notifications to senders from HP eprintCenter?

    Hi,
    How to close email notifications to senders from HP eprintCenter?
    Thank you.

    Hi Jack7363,
    Welcome to the HP Support Forums. I gather that you would like to know how to turn off notifications from HP’s ePrintCenter.
    To better assist you, would you please supply some additional information:
    What make/model/product number of HP printer do you have? How Do I Find My Model Number or Product Number?
    How is the printer connected (USB cable, ethernet, or wireless)?
    Do you have an HP Connected account or HP ePrintCenter account?
    Are the emails coming [email protected]?
    Thank you.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • How to close apps on iPhone 4

    I tried everything it says from the web from pressing the hold button 2 times and bottom shows the apps but cannot get the minus sign or get them to wiggle like people say anyone know how to close apps like this. mINE DOES NOT WORK SUPPOSE TO GET A MINUS SIGN OR HOLD TO WIGGLE NO LUCK.

    Maybe a visual will help: https://sites.google.com/site/appleclubfhs/support/advice-and-articles/locking-o rientation

  • How to close goods receipt PO

    Hi All,
    We are using SAP 8.8
    how to close Goods Receipt PO that has been pulled to A/P Invoice with a partial amount of freight ?
    i.e.
    Our GRPO has freight 5000.
    On pressing COPY FROM button in A/P invoice we selected that GRPO
    On Pressing Customize button
    Items in the GRPO appear
    We selected all items and press next
    Freight appears
    We edited freight amount from 5000 to 3000 and pulled GRPO into invoice and saved.
    After this OUR GRPO and freight remains
    Guidance in this is really needed as we want to tally stock
    Thanks
    Malhaar

    Hi Malhaar......
    Does it happen all the time like this reversal of entry?
    Like how you tested in demo this kind of scenario I would suggest you to do this excercise too.
    So that you get knowledge about that and Today you are asking this doubt but after doing this excercise you will come to know the exact effect and next time you can suggest this to others if he has same problem and will become expert in SAP
    All the Best
    Regards,
    Rahul

Maybe you are looking for