OPEN XML SDK DEVELOPING OPEN XML SOLUTIONS Zeyad Rajabi
Agenda Open XML SDK overview Open XML SDK architecture + roadmap Demos Q&A
Open XML SDK What it is and what it s not?
Open XML SDK Overview Allows you to create and modify Open XML documents SDK currently supports ECMA 376 Based on.net (C# and VB) Compatible with LINQ Provides a unified platform for solutions Consistent client and server solutions This SDK does NOT Replace Office application Object Models Perform layout + recalculation tasks Perform file conversions to other formats, like PDF or XPS The SDK will be released in two versions Version 1: Part level manipulation Version 2: Content level manipulation
Open XML SDK Road Map Version 1.0 of the SDK Final bits released June 2008 Go-Live license Free to use and build/deploy solutions Version 2.0 of the SDK 1 st CTP released September 2008 More CTPs to come... Final release around same time Office 14 ships
Open XML SDK Architecture Schema Level Validation Open XML File Format Higher Level Semantic Level Validation Helper Functions Open XML File Format Base Level Reading/Writing Low Level DOM Packaging API System Support.Net 3.5 System.IO.Packaging Open XML Schemas
Open XML SDK Base Level Base level Open is the XML foundation File Format of Base the Level SDK Provides strongly typed access to: Schema Level Validation 1. Parts within an Open XML Format 2. XML contained within a part Provides DOM-like System and Support SAX-like reading and writing capability.net 3.5 Open XML File Format Higher Level Semantic Level Validation Reading/Writing Low Level DOM Packaging API System.IO.Packaging Helper Functions Open XML Schemas
Open XML SDK Higher Level Schema Level Validation Open XML File Format Higher Level Semantic Level Validation Helper Functions Current thinking is future CTPs for version 2.0 will have Reading/Writing validation functionality Low Level DOM Packaging API Validate: Against Open XML schemas Against set of semantic System constraints Support defined in standard.net 3.5 Open XML File Format Base Level System.IO.Packaging Helper functions code snippets Open XML Schemas
Document Assembly Automated reporting in PresentationML Zeyad Rajabi Program Manager Office
Key Takeaways Fast Starting from a template is always easiest Easy to clone parts or objects with SDK LINQ built into SDK makes it really easy to query and update content Can either use strongly typed objects or xml directly
Document Assembly Creating a spreadsheet and chart from database Zeyad Rajabi Program Manager Office
Key Takeaways Again, starting from a template is always easier than creating from scratch Make your file look good using Office application then use as template Easy to add/modify content with SDK
Document Assembly Merging documents together Zeyad Rajabi Program Manager Office
Key Takeaways AltChunks is the easy way to merge documents within WordprocessingML Can merge other Word documents or even html Allows for structured search Search for content controls or custom xml Allows for extraction and insertion of content or documents Ensures consistent style of inserted content Solution easily integrated in SharePoint
Document Assembly Data and repeating table in a WordprocessingML document Zeyad Rajabi Program Manager Office
Key Takeaways Fast Open XML SDK v2 works with LINQ Create documents based on templates Can either use strongly typed objects or xml directly
Links + Resources Blogs Eric White s blog: http://blogs.msdn.com/ericwhite Doug Mahugh s blog: http://blogs.msdn.com/dmahugh Brian Jones blog: http://blogs.msdn.com/brian_jones MSDN Contains how-to articles and documentation Forums related to SDK http://msdn.microsoft.com/office/xml Connect Access to more articles and forums Ability to log bugs and vote for features http://connect.microsoft.com Codeplex Open source projects related to Open XML solutions http://www.codeplex.com Download site for the SDK: Version 1.0: http://go.microsoft.com/fwlink/?linkid=120908 Version 2.0: http://go.microsoft.com/fwlink/?linkid=127912
Any questions? Q&A