Staff DotNet Blogs

Creating Open Xml documents have never been that easy.  Some weeks ago Microsoft released the CTP version for the Open Xml SDK version 2.  Things have really changed!!!

Open Xml SDK version 1 helped us to create the inner structure for an Open Xml Package by exposing a Part Object Model (a part is a file included in an Open Xml document), however, that version lacked an Object Model in order to work with each one of the elements inside those parts (Sections, Paragraphs, Runs and so on for WordProcessingML documents for example).   We had to create the XML code from the scratch and that was a very error prone process.  Fortunately, that situation has changed with Open Xml SDK version 2.  This new version exposes a complete Object Model including not only Package Parts but also each one of the part elements necessary to create instances of the three main Open Xml document types: WordProcessingML, SpreadsheetML and PresentationML. This is probably, under my point of view, the best improvement for this new Open Xml SDK version.  However, there are more interesting new features in this version.

The Open Xml SDK v2 includes a tool for comparing Open Xml files, a Class Explorer to navigate through the SDK classes and a very nice tool: the Document Reflector.  The Document Reflector is what I called a “lazy developer oriented tool”J.  Why, well, because if you don’t want to expend some time thinking about the classes you need to create an Open Xml document all you have to do is opening an existing Open Xml document which resembles that you want to create and ask the Document Reflector to write the necessary Open Xml SDK code for you.  Surprise!!! I told you: Creating Open Xml documents have never been that easy J

More info at this post from Eric White

Download the Open Xml SDK V2 CTP here
Comments are locked for this post.