以编程方式将图像添加到OneNote 2007

时间:2009-10-02 17:37:30

标签: xml ms-office onenote

我在OneNote 2007中将图像添加到页面时遇到问题。我可以创建包含内容的部分,笔记本和页面,但是我在向页面添加图像时遇到了问题。

我调用UpdatePageContent并传入xml,但我收到一条无效的XML消息( hresult 0x80042001 )。任何协助赞赏。这是我试图用以下内容更新页面的XML:

<?xml version="1.0"?>
<one:Page xmlns:one="http://schemas.microsoft.com/office/onenote/2007/onenote" ID="{E1C8B8F6-6E07-4986-BD90-40E7D55DE31C}{1}{B0}" name="1" dateTime="2009-10-02T16:39:36.000Z" lastModifiedTime="2009-10-02T16:39:40.000Z">
  <one:PageSettings RTL="false" color="automatic">
    <one:PageSize>
      <one:Automatic/>
    </one:PageSize>
    <one:RuleLines visible="false"/>
  </one:PageSettings>
  <one:Title style="font-family:Calibri;font-size:17.0pt" lang="en-US">
    <one:OE author="Chapman, Jeremy" lastModifiedBy="Chapman, Jeremy" creationTime="2009-10-02T16:39:38.000Z" lastModifiedTime="2009-10-02T16:39:39.000Z" objectID="{722FED92-FCC8-45D5-89CB-A2F506E92A66}{31}{B0}" alignment="left">
      <one:T><![CDATA[1]]></one:T>
    </one:OE>
  </one:Title>
  <one:Image  format="png">
    <one:Position x="0" y="0" z="0" />
    <one:Size width="90" height="90" />
    <one:Data>aWgzVisZWZxTGNlNHQ      ...       9SSzVDWUlJPQ==</one:Data>
  </one:Image>
</one:Page>

0 个答案:

没有答案