Question

I love using OneNote, however I want more control over the locations of my notes and how notes are generated. I'm very versed in VBA and ok with Python (and those are the only languages I can code with on my machine) however I haven't found a decent way to interact with OneNote through code. I'm using OneNote 2003 which doesn't look like it has an xml export like 2007 does. Has anyone figured out an easy way to be able to read and write OneNote files with Python or VBA?

Was it helpful?

Solution

OneNote 2007 has more options, but OneNote 2003 only supports the CSimpleImporterClass API for importing data programmatically into OneNote. CSimpleImporterClass will let you bring in images, ink, and HTML into OneNote using VB.

Reading OneNote 2003 files might be a little harder. I don't know of any resources to make it easy to ready OneNote 2003 files with Python or VBA.

OTHER TIPS

Python support described @ http://varunsrin.posterous.com/python-onenote-you

There is also a C# plugin @ http://onom.codeplex.com/

For basic CRUD (Create, Read, Update, Delete) operations on OneNote notebooks, sections or pages, you can also use the REST API from Python.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top