Patrick’s Bytes

Techie for the past 30 years…

Tabular data with OpenXML Custom XML

A lot of my partners are excited with the Content Control capability found in the WordProcessingML of OpenXML format. This opens up opportunity to create document generation module within their own application or used OpenXML as a simple e-form solution. Well then the next common question is how to host tabular data in WordProcessingML? Some thing like below

<OrderDetails>
   <OrderItem>
      <ItemCode>123</ItemCode>
     <Quantity>1</Quantity>
   </OrderItem>
   <OrderItem>
      <ItemCode>A345</ItemCode>
     <Quantity>12</Quantity>
   </OrderItem>
</OrderDetails>

To

Item Code Quantity
123 1
A345 12

I did a Live Search today and found out that Mike Ormond from Microsoft UK come out with this sample so I do not need to spend endless nights creating one. Thanks Mike! He has the sample code here and 3 WMV presentations posted online. So you guys must go grab it!!

No Responses to “Tabular data with OpenXML Custom XML”

RSS feed for comments on this post. TrackBack URL

Leave a Response