8

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

Sanjiv
  • 93
  • 1
  • 5
  • 1
    Please read [ask] - generally the MS Office API is documented well enough, so you should be able to do some research prior to posting here. If you encounter a *specific* programming problem, you are welcome to ask. – Filburt Nov 04 '16 at 11:10
  • "No cloud etc. is to be used" - what exactly does that mean? The OneNote API is for accessing OneNote notes/pages in the cloud. – Velojet Nov 05 '16 at 02:06

2 Answers2

9

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.

Community
  • 1
  • 1
Jorge Aguirre
  • 2,787
  • 3
  • 20
  • 27
4

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

jayongg
  • 503
  • 3
  • 8