elvirbrk / NoteHighlight2016

Source code syntax highlighting for OneNote 2016 and OneNote for O365 . NoteHighlight 2013 port for OneNote 2016 (32-bit and 64-bit)
GNU General Public License v2.0
3.82k stars 392 forks source link

[SOLVED] Error message unable cast Microsoft.office.Interop.OneNote.ApplicationClass Microsoft.office.Interop.OneNote.IApplication #113

Open pierrejean opened 4 years ago

pierrejean commented 4 years ago

Hi,

If you get an error when you press any language button about "unable cast Microsoft.office.Interop.OneNote.ApplicationClass Microsoft.office.Interop.OneNote.IApplication". See my screen copy in French, you can see the cast error between Microsoft.office.Interop.OneNote.ApplicationClass Microsoft.office.Interop.OneNote.IApplication

The source is an error with and old OneNote version and a mix for windows (my version is Windows 10 Pro) to identify which composent is correct between the both One Note version.

How to solse: repair Office as explained here with Excel similar trouble: https://stackoverflow.com/questions/28066719/unable-to-cast-com-object-of-type-microsoft-office-interop-excel-applicationcla You can call classical remove/repair with add/remove program, chose Office then: https://i.stack.imgur.com/8Mymj.jpg

Best

Pierre

Below one line of Java and after press Java button on rubbon:

Error-Cast-Onenote