I was just looking on the OneNote Developer site and I saw that we haven’t posted the OneNote error code and HRESULTS for the COM API. This is the HRESULTS that came out with OneNote 2007 Beta2:
NOTE: These are subject to change as the product is still in beta. Most likely these will all stay around, we will just append more items. If you think something is missing please let me know soon!
Keywords: OneNote API Error code, OneNote COM HRESULT, OneNote error codes, COM Errors
Anyone know what error code 0xE0000644 is?
Mike - Did you get that from OneNote? I have never seen that error code and the final list of error codes are here:
And you can see it isn't on this list. What were you trying to do? Where did you get the error?
I got this error b/c the Name of the section group had a "," and a "." in the name. I removed those and renamed the tab and syncs fine now.
A shot in the dark here...
I'm trying to set the title on a page but I'm getting the hrPageReadOnly 0x80042001 error and can't really figure out why.
I've created the folder, section and page with title (it opens up ok in OneNote). Then I basically try to do this:
XmlElement xmlElement = (XmlElement)xmlDoc.SelectSingleNode("//one:Title//one:OE//one:T", nsmgr);
xmlElement.InnerXml = "<![CDATA[Title Test]]>";
Trying to update the change then leads to the error above...
Why does it say I have invalid xml here?
using the strNamespace = "http://schemas.microsoft.com/office/onenote/2007/onenote"; schema, Windows 7 and Visual Studio 2010 beta 2 and trying to create a OneNote 2007 document.
This might be the wrong channel for asking this question but I'm kind of at a loss here and I can't find much documentation or help using the net. I've used your video demonstrating OneNote 2007 beta at the MS Office System Developers Conference as a kind of template for this btw, great vid! Any help moving forward is appreciated.
Gunnar - I would try to turn on debug logging which you can learn how to do here: http://blogs.msdn.com/descapa/archive/2006/12/08/debugging-the-onenote-api-enable-logging.aspx