Condividi tramite


Table of Contents powertoy!

Note: as of Jan 5, 2009, there is a slightly updated version of this powertoy at https://blogs.msdn.com/johnguin/archive/2009/01/05/a-small-update-to-the-onenote-table-of-contents-powertoy.aspx.  Sorry for not being able to update these original files (which still work).  Please use the links from the newer article to download the newer files. 

 

Nani Courten is another tester on the OneNote team and created an incredibly useful addin for OneNote.

The scenario Nani decided to tackle is this one: there is a group of people sharing a notebook. Each person edits a few pages here and there every so often. Now when I open the notebook, I want to quickly find the most recent changes. If a page was changed last night, I want to see it, and if a page has been unchanged for some amount of time, I'm not as interested in viewing it. Essentially, I want a list of most recently changed pages.  

Nani and I talked about this and her solution works perfectly for me. She created an addin which creates a Table of Contents for the section I'm looking at with the most recently changed pages at the top of the list. Each page in the list is a link to the page: I can see what changed last night, click the link and go straight to that page.    

You can also delete the column which shows the time the pages were changed and make a table of contents which lists only the page titles. This way the user who posted to the newsgroups about wanting a summary of the pages in a section can get his information as well.

And did I mention this is incredibly fast?

Links:

The setup files (and remember to exit OneNote, run setup.exe as admin and select to install for all users):

https://blogs.msdn.com/johnguin/attachment/9281596.ashx (new link)

https://johnguin.members.winisp.net/Shared%20Documents/TableOfContentsSetup.zip

The source (includes setup):

https://johnguin.web.officelive.com/Documents/toc2_source.zip (even newer link)

https://johnguin.com/Documents/toc2_source.zip (new link)

https://johnguin.members.winisp.net/Shared%20Documents/OneNote%20Table%20of%20Content.zip  

Comments are welcome. Nani has already indicated she may expand this to open a dialog to let you choose which columns get created – let me know if you would be interested in this.

John

Comments

  • Anonymous
    July 20, 2007
    The links are not working for me.  Can someone else confirm a problem (or not) with the links above? Thanks!

  • Anonymous
    July 20, 2007
    Link seems to be working now.  I did not do anything on my end, so thanks to whomever!

  • Anonymous
    August 20, 2007
    One of our MVPs, Kathy Jacobs (link to her site http://www.lockergnome.com/nexus/callkathy ), asked last

  • Anonymous
    August 20, 2007
    One of our MVPs, Kathy Jacobs (link to her site http://www.lockergnome.com/nexus/callkathy ), asked last

  • Anonymous
    March 12, 2008
    The comment has been removed

  • Anonymous
    May 15, 2008
    I love the PowerToy.  I would really like to see more functionality, such as decided to sort by data modified or by date created.

  • Anonymous
    June 03, 2008
    When do the links get updated?  I am trying this out and have added items but, the TOC is not showing the updated dates.

  • Anonymous
    June 03, 2008
    This is a limitation of our API - we can't get notified that content in the section has changed.  So, you have to delete the old TOC and make a new one when you need it updated. Sorry for the problems, John

  • Anonymous
    August 13, 2008
    I love the PowerToy and would be interested in a table of contents that creates a list of the pages in the order they are listed in the page section.  

  • Anonymous
    September 23, 2008
    Great utility and my suggestion is: I would like to be able to create one TOC that includes all of my pages from all sections and from all notebooks. thanks

  • Anonymous
    September 23, 2008
    Interesting idea.  Performance may be a problem - let me forward this to Nani and see what she says. John

  • Anonymous
    October 17, 2008
    thanks soo much!! its a great tool. but could you please tell me what to do after running the setup?........pls help

  • Anonymous
    October 17, 2008
    After installing, start OneNote.  You should see a table of contents button added to the toolbar.  When you click it, a new page gets created with links to all the pages in the section, in the given order. If the button immediately goes gray when you click it, follow the directions at the end of this post here: http://blogs.msdn.com/johnguin/archive/2008/10/07/a-calendar-planner-powertoy-for-onenote.aspx Have fun, John

  • Anonymous
    December 22, 2008
    Every so often I'll get a question from someone who has a need to find pages that have embedded files

  • Anonymous
    December 22, 2008
    I second Sean Valley's suggestion.  I would like to see a TOC be ordered by order of tabs.  The current feature "by modified date" can be helpful at times but less useful.  Another helpful option would be to create the TOC in alphabetical order. Thanks.

  • Anonymous
    December 22, 2008
    Have you seen the Sort Sections powertoy?  It's at http://blogs.msdn.com/descapa/archive/2007/03/03/sort-sections-powertoy.aspx and may be what you are looking for. John

  • Anonymous
    January 05, 2009
    Over the in the OneNote Discussion Group , Mike made this request for a change to the Table of Contents

  • Anonymous
    January 15, 2009
    I don't see changes after I add 'table of contents'. Am I suppose to see updates automatically?

  • Anonymous
    January 24, 2009
    I like the toy but real value will be when such a routine will show me what pages are in each section of a chosen notebook. Once "in" a section most or all of the pages are visible to me. However, a notebook with many sections is so much more opaque and requires a LOT of clicking to see how the content has been arranged. Good for really long sections, I guess. I'll watch for a next iteration. Thank you for working on this! Jonathan

  • Anonymous
    April 18, 2009
    It would also be nice to have sub-topics that include desired tags. That way you could have titles within each page.

  • Anonymous
    May 16, 2009
    I've installed, uninstalled and reinstalled this powertoy about a dozen times.  Never can get it to do anything.  The button shows up in my standard toolbar, but alas, does nothing.   Suggestions?

  • Anonymous
    May 16, 2009
    what happens when you click the button?  One thing I noticed is that if you have a large number of pages it can take several seconds or more to complete...

  • Anonymous
    May 16, 2009
    What happens is absolutely nothing.  I get a brief hourglass (maybe half a second), then nothing.  No table of contents, nothing.

  • Anonymous
    May 18, 2009
    OK, let me look through the code and see what may be getting flagged as an error.  In the meantime, can you answer these two items: Does this fail for all sections or just one?  And how big is the section? John

  • Anonymous
    May 20, 2009
    It fails for all sections, regardless of size. I have sections that contain only a few pages, and other sections that contain dozens of pages, but none that are particularly huge.

  • Anonymous
    May 26, 2009
    I looked through the code and there is not much that could go wrong.  It reads some registry keys and then creates a "DataGridView" control.  Do you have the .net 3.5 framework installed (you can get it at http://www.microsoft.com/downloads/details.aspx?FamilyID=333325fd-ae52-4e35-b531-508d977d32a6&DisplayLang=en if you need to. Other than that, can you verify you are running setup as an administrator? John