OneNote Addin - Save and reload page - UpdatePageContent
  Home FAQ Contact Sign in
microsoft.public.onenote only
 
Advanced search
POPULAR GROUPS

more...

 Up
OneNote Addin - Save and reload page - UpdatePageContent         

Group: microsoft.public.onenote · Group Profile
Author: Herthoren
Date: Aug 13, 2008 23:18

Hi!

I've been searching for days to find a solution for my problem, but couldn't
find anything that got me through this.
I want to make some little changes to a OneNote page from an add-in I write
(Just replace certain strings with certain symbols - some latex-like
rendering).
I can't even reload a previously saved page's unchanged code in any way.

What I do is getting the page's code with the GetPageContent method, then
try to reload it with the UpdatePageContent method.

If i just upload it without any change it throws
hrInvalidXML 0x80042001 exception

If I remove all objectID's from it (keeping only the page's ID) it throws
hrInsertingInk 0x80042008 exception

If I also remove all InkDrawing and InkWord objects it throws
hrInvalidXML 0x80042001 exception again.

Can't find a working example of how to save a page and reload it back.
Could anyone tell me why this doesn't work? As far as I understood it, the
UpdatePageConent form is the same as I get from GetPageContent, except for
the mess with the IDs, which I correctly removed.

Thank you very much
2 Comments
diggit! del.icio.us! reddit!

RELATED THREADS
SubjectArticles qty Group
Re: Send to OneNote Does Not Generate An Image In OneNotemicrosoft.public.onenote ·