Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Onenote API for Local Computer

This is my first post on Stackoverflow - I am looking for guidance about OneNote API. I look forward to develop a solution primarily for "Own Usage" - which Creates, Opens and Closes OneNote Sections on my Local Machine - No cloud etc. is to be used. Please guide if it will be possible?

I hope it should be possible - Please guide how to proceed and what to study for that. My programming skills are very basic.

I will prefer to use OneNote 2007.

[Edit on 5th Nov. Noon IST] A few clarifications might help: I had initially gone through https://msdn.microsoft.com/en-us/library/office/dn575425.aspx however, I found that "The OneNote API runs on the Microsoft globally-available cloud, and sends data from your app into the user's OneDrive". Whereas in my case no other user or cloud is to be involved. I wish to "develop a solution primarily for "Own Usage" - which Creates, Opens and Closes OneNote Sections on my Local Machine". It seems that a link suggested by "Sebov1c" msdn.microsoft.com/en-us/library/office/jj680118.aspx and another suggested by "Jorge Aguirre" should serve my purpose. I will do my homework on this topic over the next week and get back here.

Thanks and Regards

Sanjiv

like image 891
Sanjiv Avatar asked Nov 04 '16 11:11

Sanjiv


2 Answers

Note that the OneNote REST API is for cloud based notebooks only, so I don't think that's an option for you.

If you want offline support on windows only, your other option is to use the OneNote interop C# libraries (from what you say, I think this is what you're looking for) There's a pretty good example here: How To Write To A OneNote 2013 Page Using C# and The OneNote Interop

There's other options to write apps that are embedded in OneNote, but I don't think that's what you're looking for.

like image 116
Jorge Aguirre Avatar answered Sep 28 '22 00:09

Jorge Aguirre


There is a COM API for OneNote. Check out a sample here: http://www.github.com/OneNoteDev/VanillaAddin

like image 39
jayongg Avatar answered Sep 28 '22 02:09

jayongg