How to programmatically search text in OneNote 2007 files?

feklee 1 Reputation point
2022-01-04T09:03:33.007+00:00

If there is some form of API or library that I could use, e.g. from C#, that would be nice. There are quite a number of files that need to be parsed.

(PS: I post here per suggestion by emilyhua-msft, fully understanding that my question is not about add-ins.)

OneNote Management
OneNote Management
OneNote: A family of Microsoft products that enable users to capture, organize, and reuse notes electronically.Management: The act or process of organizing, handling, directing or controlling something.
174 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Castorix31 82,116 Reputation points
    2022-01-04T10:09:22.363+00:00

    If you want to read the content of *.one files, you can use OneNote Interop : Application interface (OneNote)

    1 person found this answer helpful.
    0 comments No comments

  2. feklee 1 Reputation point
    2022-01-04T11:15:08.53+00:00

    Nice, thank you!

    Can I use that interface from within a command line program that runs on a server?

    The server is ideally a Linux system, with a Mono/.Net runtime.

    0 comments No comments