OneNote Text Importer
John Guin gives us yet another requested and useful PowerToy… (where was this guy two years ago during the “contest”?)
It will allow you to navigate to a folder on the hard drive and import all the TXT files in it to OneNote. It will create a new section with the name of the folder on the hard drive as the section name. And here I hit a snag. I never really liked the behavior of putting all new information into Unfiled Notes by default. While it makes sense most of the time, in this case I really saw a need to control where the imported text files would go. I decided to implement a tree control to let the user choose which notebook the files would be imported. So now you can choose into which notebook you want the imported files to go.
Here are the links.
For the setup program: http://johnguin.com/Documents/OneNote_Text_Importer_Setup.zip
And the source code (C#) http://johnguin.com/Documents/OneNote_Text_Importer_Source.zip







Add New Comment
Viewing 6 Comments
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Is there any way to open One Note 2007 application using VB script/Java script?
I tried this VB script ...this failes because VB script is not supporting OUT parameter
dim oneNote,pageStyle,importedPageID,unfiledPath,unfiledID
set oNote = CreateObject("OneNote.Application")
oNote.GetSpecialLocation 1,unfiledPath
oNote.OpenHierarchy unfiledPath, "", unfiledID, 0
oNote.CreateNewPage unfiledID,importedPageID, 0
Dim xml2importBase 'As String
xml2importBase = ""
xml2importBase = xml2importBase ""
xml2importBase = xml2importBase ""
Dim tailXml
tailXml = ""
Dim xml2import
xml2import = xml2importBase tailXml
oNote.UpdateHierarchy xml2import
oNote.NavigateTo importedPageID, "", False
I know we cant send out parameter in the VB script.
So Is there any way to overcome this problem and make this script run?
Or can I import XML to the OneNote2007 application without SectionID and PageID?
Do you already have an account? Log in and claim this comment.
Add New Comment