Determine, via VSTO, if document has been opened in OLE Viewer RRS feed

  • Question

  • I developed a VSTO addin for Excel and Work 2010 that I would like to disable when the document is viewed in a OLE window.  

    I can't seem to determine HOW the document was opened/viewed.  The document is displayed in a modified version of the office app inside another 3rd party application and the "File" menu is hidden, some buttons are disabled and I can't customize the ribbon, so I'm hoping this special "running" mode is exposed somehow.

    Would love to be able to say:

    If Application.IsOle Then
    End If

    Thanks in advance.


    • Edited by htimsneb Thursday, September 27, 2012 7:55 PM
    Thursday, September 27, 2012 7:47 PM

All replies