Technology Questions

Go Back   Technology Questions > Software Questions > General Questions > Microsoft Office > Microsoft OneNote

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 10-08-2007, 02:10 AM
Alex
Newsgroup Contributor
 
Posts: n/a
OneNote API broken?

Hi there,

I've tried to create a new notebook, new section and new page in onenote
using a C# program I've created. So far so good - and the next step is to
name the Page (The notebook and section get named so that's all good).

When I go to enter a page title I get the page content, using code from the
demo code that came with the video. It puts the XML in a holder,
selectsinglenode that refers to the title, and edits the title. I've output
my input to the console window to make sure it's all good, and as far as i
can tell it is!

When I go to change the page title however:

try
{
onApp.UpdatePageContent(xmlElement.InnerXml,
System.DateTime.MinValue);
}
catch (NullReferenceException e)
{
System.Console.WriteLine("Error: " + e);
}

this line seems to return: HRESULT: 0x80042000. I looked it up and came back
with a Malformed XML but I can't seem to figure out why! Anybody got any
ideas?

TIA!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 10-08-2007, 02:10 AM
  #2 (permalink)  
Old 10-08-2007, 12:50 PM
Ilya Koulchin
Newsgroup Contributor
 
Posts: n/a
Re: OneNote API broken?

Alex wrote:
> this line seems to return: HRESULT: 0x80042000. I looked it up and came back
> with a Malformed XML but I can't seem to figure out why!


Probably because your XML is malformed. I can't really say more without
looking at the exact string that you're trying to import. You can also
take the XML you're trying to import and run it through an XML
validator, which might point out additional problems.

Ilya
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Import OneNote 2003 files into OneNote 2007 - not through upgrade Jeanne Rimpo Microsoft OneNote 1 03-24-2007 09:15 AM
OneNote WebDAV Broken! SRB Microsoft OneNote 21 02-21-2007 12:46 AM
Broken link when move or rename a section in ONENOTE 12 Maximo Boada Microsoft OneNote 14 01-09-2007 01:45 PM
OneNote 2003 - OneNote Image Writer vs. Send to OneNote in regards to size Brian Hoyt Microsoft OneNote 1 01-07-2007 12:18 AM
Re: OneNote 2007 Beta 2 - Send to Microsoft OneNote Configuration Ques Rainald Taesler Microsoft OneNote 1 01-07-2007 12:15 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 10:54 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0