How to import background image in OneNote 2007

B

benmca

I'm trying to update a background image via xml, and I keep getting
hrInvalidXML (0x80042001). I've poked through the schema quite a bit,
and I don't find any required attribs or elems which I'm missing.
Here's my xml - does anyone see anything wrong? Thanks for your help
- Ben

- <one:page xmlns:eek:ne="http://schemas.microsoft.com/office/onenote/
2007/onenote" ID="{6F61A264-3397-48A0-9FFD-8496659F15D6}{1}{B0}">
<one:Meta name="NotexPageNumber" content="28" />
- <one:pageSettings>
- <one:pageSize>
<one:Orientation landscape="false" />
<one:Dimensions width="419.5275573730469"
height="595.2755737304687" />
<one:Margins top="0.0" bottom="0.0" left="0.0" right="0.0" />
</one:pageSize>
<one:RuleLines visible="false" />
</one:pageSettings>
- <one:Title>
- <one:OE>
- <one:T>
- <![CDATA[ Page 28:
]]>
</one:T>
</one:OE>
</one:Title>
- <one:Image backgroundImage="true"
lastModifiedTime="0001-01-01T00:00:00.0000000-08:00">
<File path="c:\test.bmp" />
</one:Image>
- <one:InkDrawing isUnclassified="true" inkOriginX="0" inkOriginY="0">
<one:position x="128.196838" y="149.137787" />
- <one:Data>
- <![CDATA[ ACwcA4CABB0DPIIBAwRIEEU1ChoFh/C8h4XxeBf3DxRQh/
C8x4W1+Kg4P7nNQA==
]]>
</one:Data>
</one:InkDrawing>
</one:page>
 
I

Ilya Koulchin

I'm trying to update a background image via xml, and I keep getting
hrInvalidXML (0x80042001).

Have you run the XML through a validator? What did it say?

Ilya
 
B

benmca

I guess not completely contradictory, since it says my File tag is
Invalid, though I don't see anything required except for path, which
appears valid from the schema.
b
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top