Workflow, Collaboration, Enterprise Content Management

Important Safety Tip for Office Open XML - Flatten Your Package!

by John Holliday 24. October 2008 18:18

Eric White -> Transforming Open XML Documents to Flat OPC Format

If you're doing anything with Office Open XML, then you need to read this article by Eric White.  In it, Eric describes a very nice approach that lets you gain full leverage out of XSLT when dealing with Office Open XML documents.  Basically, he starts by converting a .DOCX file (or .PPTX or .XSLX) to an intermediate format (Flat OPC) that retains the same structure as a standard package file, but in a single XML document.  Then you simply apply your favorite XSLT transform and convert it back into a package.  Voila! Instant transformation without all that messy system.io.packaging code.  Included with the article are the two conversion routines you need and lots of sample code to play with.  Great stuff!

Comments

Comments are closed
Twitter Facebook Linked-In Subscribe

Pro SharePoint 2007 Development  Pro SharePoint 2007 Records Management Development  6 Office Business Applications for SharePoint 2007

CAML.NET

SharePointPro 2010 SummitSharePoint Evolutions 2010


SharePoint Job Tweets



SPDEVNET

Developer Resources

  • Fields WSS XSLT - Custom XSLT stylesheet that displays the default SharePoint column definitions in a table.
  • Custom Action Identifiers - A sortable table of default field definitions, including CAML declarations for writing content types.
  • CAML.NET Documentation - Online documentation for the CAML.NET class library.