Welcome to MSDN Blogs Sign in | Join | Help

Notebook cleaner and privatizer powertoy

 

People that publish shared notebooks in some environments have a couple of requests which need to be addressed.  First, suppose you are an administrator creating a section or some pages in a "New Employee Orientation" notebook which will be shared with all new employees at your company.  OneNote keeps track of who modifies information on a page in shared notebooks (right click the "Outline Element" to see on the context menu who last modified it), but in this scenario, it is really irrelevant who typed the information.  Wouldn't it be nice to remove that data from the notebook?

 

People also may want this as an additional level of privacy.  I suggest spot checking the results if it is really critical that the personal information is removed.

 

Another problem is a bit more subtle.  If you add a lot of information to a page, focus (technically, the "insertion point," or location of the cursor) is remembered and focus goes to that location when anyone navigates to that page.  For our scenario, you would probably want the focus to be at the top of each page by default, but since you probably typed the information at the bottom of the page most recently, focus is left at the bottom.  The tedious way to move focus to the top of the page is to manually open each page and click at the top. 

 

Or, you can install the "Notebook Cleaner" powertoy from http://johnguin.members.winisp.net/Shared%20Documents/OneNote%20Notebook%20Cleaner.zip and let it do all this work for you.

 

Gary Neitzke wrote this tool and here is his summary:

 

Purpose:

To remove author information and reset navigation points to make the notebook easily distributable.

 

Description:

This add-in will allow you to prepare a notebook for distribution. When started it will do several things:

 

1.) Reset all navigation points to the top most page of each section, and the top most section of each section group.

2.) Removes selection from content so the cursor will be in the title box

3.) Clears Author and LastModifiedBy items .

 

This tool also includes a pair of registry files to toggle cleaning the names on or off.  If you only want to move focus to the top of each page in a notebook, double click the "DisableCleaning_Names.reg" file to leave the author names intact.  To re-enable this functionality, click the "EnableCleaning_Names.reg" file.  Cleaning the names is the default.

 

I can't really demonstrate this addin easily since I don't want to wipe out the "Last Changed By" data in my shared notebooks.  The toolbar does not have an icon - it just uses "Clean Notebook" as a label.

 

And we're still fixing a few nagging bugs with the Journal Importer.  It should be done in the next few days, so please bear with me.

 

Questions, comments, concerns and criticism always welcome,

John Guin

 

Published Saturday, December 15, 2007 10:05 AM by JohnGuin
Filed under: , ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: Notebook cleaner and privatizer powertoy

Dear John! Dear Gary!

Great job, you people are doing here!

Producing powertoys by the dozen.

Thank you so much.

This one works well on most of my notebooks. After cleaning pages are starting much faster.

Some notebooks of mine turn the application to crash Onenote, though.

Example:

"An error occurred while cleaning Notebook:

Details:

System.Runtime.InteropServices.COMException (0x800706BA): Der RPC-Server ist nicht verfügbar. (Ausnahme von HRESULT: 0x800706BA)

  bei Microsoft.Office.Interop.OneNote.ApplicationClass.GetHierarchy(String bstrStartNodeID, HierarchyScope hsScope, String& pbstrHierarchyXmlOut)

  bei ScrubberAddIn.ONScrub.newAlgoClearPages()

  bei OneNoteAddIn.ONAddMain.startCleaning()

Hope this information helps. Keep on going!

Kind regards

Carsten

Sunday, December 16, 2007 2:37 PM by Carsten

# re: Notebook cleaner and privatizer powertoy

Hmm - I'll check out the crash.  Is this notebook on a network share which is connected?

John

Sunday, December 16, 2007 2:43 PM by JohnGuin

# re: Notebook cleaner and privatizer powertoy

No (to my knowledge), it is on a Tablet PC (workstation) connected to the Internet via DSL (that is a network connection, but I think you mean something different). In case you need more information, I'll try to supply what I can. Got another crash, I shall try to reconstruct it. Great to answer, thanks a lot.

Yours,

Carsten

Sunday, December 16, 2007 3:15 PM by Carsten

# re: Notebook cleaner and privatizer powertoy

Here's the other:

System.UnauthorizedAccessException: Zugriff verweigert (Ausnahme von HRESULT: 0x80070005 (E_ACCESSDENIED))

  bei Microsoft.Office.Interop.OneNote.ApplicationClass.GetHierarchy(String bstrStartNodeID, HierarchyScope hsScope, String& pbstrHierarchyXmlOut)

  bei ScrubberAddIn.ONScrub.newAlgoClearPages()

  bei OneNoteAddIn.ONAddMain.startCleaning()

Sunday, December 16, 2007 3:17 PM by Carsten

# re: Notebook cleaner and privatizer powertoy

As the messages basically are the same,I conclude that the crash would be caused by some specific trait of the document accessed.

In the first of the two cases those were print outs (send to Onenote 2007) of invoices from a purchase I made through the Internet. Does that help?

Yours, kindly

Carsten

Sunday, December 16, 2007 3:31 PM by Carsten

# re: Notebook cleaner and privatizer powertoy

Printouts are probably the key - let me see if I can reproduce the crash locally.

Thanks,

John

Sunday, December 16, 2007 4:10 PM by JohnGuin

# re: Notebook cleaner and privatizer powertoy

But why only some? I do them all the time.

Thanks for caring,

Carsten

Sunday, December 16, 2007 4:40 PM by Carsten

# re: Notebook cleaner and privatizer powertoy

I would really like to use this tool but it doesn't work on my computer.

It does set "all navigation points to the top most page of each section"

But it does not "Removes selection from content so the cursor will be in the title box"

The cursor remains at the last edit point.

Thursday, May 29, 2008 11:43 AM by Mike

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker