I know a few people have created their own app which does this but I finally wanted to release the one that Ilya Koulchin created for us on the OneNote team. Introducing..OMSpy
OMSpy is a tool to get you started using the OneNote API, it allows you to export the XML for an entire OneNote hierarchy, sections & pages. It also lets you update the hierarchy with one click of a button. Additionally you can update the page content and see if you edits are valid before updating them on a page.
- Refresh – This will refresh the current hierarchy of what you see in the view
- Release – This will release OMSpy's COM reference to OneNote
- Get Content – If you have an item selected this will give you the XML for the content. This is mainly useful for the pages
- Update Content – If you make changes in the content field it will update the XML accordingly and make a change on the page.
- Publish PDF – This will publish a PDF for the current item selected, via the API
- Save Archive – This will create a OneNote Package (onepkg file) for the item selected
- New Page – This will create a new page in the section selected
- Navigate To – This will launch OneNote and navigate to the item selected
- Update Properties – This will update the page's properties as listed under the main content
- Exit – Well I think you can understand this one
All you need to do is to download OMSpy.zip and extract it wherever you want, make sure you have OneNote 2007 installed and then you are done! I believe it needs the .net 2.0 framework.
If you have problems please let us know. <applause> Otherwise a big thanks to Ilya for his help on this! <applause>