J
John McDonald
Hi,
I'm working on an add-in to an external program that will write information
to a page in OneNote when that information changes in the external app. I
need to be able to always write the updated information to the same page in
the same section/notebook. Is there a way I can externally maintain a
handle/pointer/ID to a specific page in OneNote? I thought about saving the
object ID of the page (which I assume is the same as the PageID in the
various 'Page methods), but in the 'What's New for Developers in OneNote
2007' guide, it states that the object ID can change every time OneNote is
started.
The only way I can see to do this is to maintain a list of the object titles
of the full hierarchy (notebook/section group/section/page) and traverse it
down to the page I need, but this raises the problem of the user changing the
title of any of the objects in the hierarchy (e.g. renaming the section that
contains my page).
Is there any way for me to consistently get access to a specific page in
OneNote from an external application across multiple instances of OneNote?
Thanx.
John
I'm working on an add-in to an external program that will write information
to a page in OneNote when that information changes in the external app. I
need to be able to always write the updated information to the same page in
the same section/notebook. Is there a way I can externally maintain a
handle/pointer/ID to a specific page in OneNote? I thought about saving the
object ID of the page (which I assume is the same as the PageID in the
various 'Page methods), but in the 'What's New for Developers in OneNote
2007' guide, it states that the object ID can change every time OneNote is
started.
The only way I can see to do this is to maintain a list of the object titles
of the full hierarchy (notebook/section group/section/page) and traverse it
down to the page I need, but this raises the problem of the user changing the
title of any of the objects in the hierarchy (e.g. renaming the section that
contains my page).
Is there any way for me to consistently get access to a specific page in
OneNote from an external application across multiple instances of OneNote?
Thanx.
John