B
benmca
On the "What's new for developers in OneNote 2007" website -
http://msdn2.microsoft.com/en-us/office/ms406042.aspx
The DeleteHierarchy API is documented as
"You can use the DeleteHierarchy method to delete any hierarchy object
(a notebook, section group, section, or page) from the OneNote 2007
notebook hierarchy."
But, apparently, you cannot delete Notebooks given the ID. I'm using
C# btw, and the docs are for the C++ api - could there be a
difference? At any rate - thought I'd ask if anyone else has
encountered this issue and found a workaround. My workaround right
now is to delete the notebook file structure from the hard drive,
which seems a touch harsh - I'd rather use the API if possible.
Thanks!
Ben
http://msdn2.microsoft.com/en-us/office/ms406042.aspx
The DeleteHierarchy API is documented as
"You can use the DeleteHierarchy method to delete any hierarchy object
(a notebook, section group, section, or page) from the OneNote 2007
notebook hierarchy."
But, apparently, you cannot delete Notebooks given the ID. I'm using
C# btw, and the docs are for the C++ api - could there be a
difference? At any rate - thought I'd ask if anyone else has
encountered this issue and found a workaround. My workaround right
now is to delete the notebook file structure from the hard drive,
which seems a touch harsh - I'd rather use the API if possible.
Thanks!
Ben