Group:  Other Microsoft Office Products ยป microsoft.public.onenote
Thread: How to import background image in OneNote 2007

Geek News

How to import background image in OneNote 2007
"benmca[ at ]gmail.com" <benmca[ at ]gmail.com> 4/11/2007 12:47:02 AM
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:one="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>

Re: How to import background image in OneNote 2007
Ilya Koulchin <ikoulchine[ at ]hotmail.com> 4/11/2007 6:25:30 AM
benmca[ at ]gmail.com wrote:
[Quoted Text]
> 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
Re: How to import background image in OneNote 2007
"benmca[ at ]gmail.com" <benmca[ at ]gmail.com> 4/11/2007 6:26:15 PM
Thanks for the reply. Here's the Message from my Validation Event:

The element 'Image' in namespace 'http://schemas.microsoft.com/office/
onenote/2007/onenote' has invalid child element 'F
ile'. List of possible elements expected: 'Position, Size, Meta,
MediaIndex, Tag, OutlookTask, File, Data, CallbackID' i
n namespace 'http://schemas.microsoft.com/office/onenote/2007/
onenote'.

Seems contradictory, no?
b


On Apr 10, 11:25 pm, Ilya Koulchin <ikoulch...[ at ]hotmail.com> wrote:
[Quoted Text]
> ben...[ at ]gmail.com wrote:
> > 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


Re: How to import background image in OneNote 2007
"benmca[ at ]gmail.com" <benmca[ at ]gmail.com> 4/11/2007 6:42:04 PM
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

On Apr 10, 11:25 pm, Ilya Koulchin <ikoulch...[ at ]hotmail.com> wrote:
[Quoted Text]
> ben...[ at ]gmail.com wrote:
> > 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


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net