Extracting text?

F

Felix E. Klee

How can I extract all text from a OneNote document, for further
automatic processing?
 
F

Felix E. Klee

Programmatically (or via some external program), and from an
entire .one file. (ON 2007)
 
F

Felix E. Klee

Programmatically (or via some external program), and from an
entire .one file. (ON 2007)

Doesn't anyone have any idea? I'd be grateful for any suggestion.

- Felix
 
J

John Guin [msft]

Hello Felix,

The test team released many addins last year and gave the code away on
several of them. Check the list at
http://blogs.msdn.com/johnguin/arch...te-powertoys-from-the-test-team-for-2007.aspx.
Check the Text Importer for a typical C# addin which (to start the app)
reads the contents of the notebooks.

The API is documented at http://msdn.microsoft.com/en-us/library/ms788684.aspx

Lastly, there is a very useful tool to extract the XML from notebooks at
http://blogs.msdn.com/descapa/archive/2007/02/12/omspy-a-onenote-developer-s-tool.aspx.
I suggest using it was well just to get a feel for the information available
on the page.
 
F

Felix E. Klee

Hello John!

 Check the Text Importer for a typical C# addin which (to start the app)
reads the contents of the notebooks.

Sounds like what I need - thanks a lot!
Lastly, there is a very useful tool to extract the XML from notebooks athttp://blogs.msdn.com/descapa/archive/2007/02/12/omspy-a-onenote-deve....
 I suggest using it was well just to get a feel for the information available
on the page.  

Very interesting, indeed, although it is a graphical tool and I need
something for automatization.

Again, thanks!

- Felix
 
E

Erik Sojka (MVP)

There isn't a native tool to do that. I think John is saying that with the
API and some of the samples he cites, you (or your friendly neighborhood
coder) may be able to quickly cobble something together.

Is your requirement specific to pulling text out a specific given *.ONE
file, or in general, to programatically extract text from OneNote? Maybe
there are also some API stuff you can do via WDS...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top