Quantcast
Channel: General Office Development forum
Viewing all articles
Browse latest Browse all 2257

(OneNote 2013) OneNote.Window.Application interface doesn't work

$
0
0

Our OneNote 2010 addin works well, but fails on OneNote 2013.  The problem is when it try to access interface:

    // OneNote.Window win was set before

            try
            {
                this.app = win.Application;
            }
            catch (Exception e)
            {
                string s = e.Message;
            }

The error message is:

e.Message:

"Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Office.Interop.OneNote.IApplication'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{A47D3223-06A5-3DD6-916F-50E803E0AFC2}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))."

Office team, please help!



Viewing all articles
Browse latest Browse all 2257

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>