Onenote API for Local Computer

南笙酒味 提交于 2020-02-21 13:15:16

问题


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


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/40421115/onenote-api-for-local-computer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!