Patrick's Bytes

3, September 2007

Tabular data with OpenXML Custom XML

Filed under: OpenXML — patrickyong @ 8:52 am

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!!

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Create a free website or blog at WordPress.com.