1 / 36

Document Assembly and Manipulation on Microsoft SharePoint Server 2010 Using Word Automation Services and Open XML

PR09. Document Assembly and Manipulation on Microsoft SharePoint Server 2010 Using Word Automation Services and Open XML. Zeyad Rajabi Program Manager Microsoft Corporation. Agenda. Manipulating Office files Open XML Formats Open XML SDK Office Services + Open XML SDK

lisette
Download Presentation

Document Assembly and Manipulation on Microsoft SharePoint Server 2010 Using Word Automation Services and Open XML

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. PR09 Document Assembly and Manipulation on Microsoft SharePoint Server 2010 Using Word Automation Services and Open XML Zeyad Rajabi Program Manager Microsoft Corporation

  2. Agenda • Manipulating Office files • Open XML Formats • Open XML SDK • Office Services + Open XML SDK • Word Automation Services • Excel Services • Lots! of demos • Resources + links • Q&A

  3. Old school way Manipulating Office Files

  4. Microsoft Confidential Old School WayAutomating Office Applications demo Zeyad Rajabi Program Manager Office

  5. Key Takeaways • Application Object Model was not designed for bulk automation or server scenarios • Does not scale • Try running automation on 100s of documents • Dialog boxes “stop” automation • Customers reboot application on server every X hours

  6. New school way Manipulating Office Files

  7. What are they? Open XML Formats

  8. Open XML Formats Architecture Developers see a zip file with xml parts Users see a single file File container MyDoc.docx Document properties • Default format in Office 2007 and 2010 • Word (.docx) • Excel (.xlsx) • PowerPoint (.pptx) • Open XML is an ISO standard • Document Parts • Most parts are XML Comments WordML/SpreadsheetML, etc. Custom-defined XML Images, video, sound Styles Charts

  9. What it is and what it’s not? Open XML SDK

  10. Open XML SDK Overview • Allows you to create and modify Open XML documents • SDK will support both Office 2007 SP2 and Office 2010 file formats • 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

  11. Open XML SDK Road Map • Version 1.0 of the SDK • Provides part level manipulation • Final bits released June 2008 • “Go-Live” license – Free to use and build/deploy solutions • Version 2.0 of the SDK • Provides content level manipulation • 1st CTP released September 2008 • 2nd CTP released April 2009 • 3rd CTP released August 2009 • 4th CTP coming out soon • Final release around same time Office 2010 ships

  12. Open XML SDK Architecture Open XML File Format Higher Level Schema Level Validation 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

  13. Microsoft Confidential Pushing Data into Open XMLMerging documents together demo Zeyad Rajabi Program Manager Office

  14. Key Takeaways • Fast…very fast! • Easy to merge multiple Open XML documents together • Even different types of Open XML documents • Solution easily integrated in SharePoint • Document Set feature provides framework • Open XML SDK provides: • 1:1 mapping of parts/xml to API classes • Deal with objects instead of xml

  15. Word and Excel Services Office Services

  16. Extending Solutions with Services • SDK is super powerful at manipulating Office documents • There are still tasks that require application logic • Word: Pagination, layout, file format conversion • Excel: Calculation, rendering complex charts/pivot tables • Editing documents while open in the client • Office 2010 solves this by extending/adding to the services available on SharePoint

  17. File conversions on the server Word Automation Services

  18. What is Word Automation Services? • Brand new to Office 2010 (SharePoint) • 100% fidelity server-side rendering • Right down to the last pixel! • File | Save As on the server • Read/write any format understood by Word client • High volume throughput with scalability • Printing on server through PDF/XPS

  19. Word Automation Services Performance FAST!

  20. Microsoft Confidential Introducing Word Automation Services demo Zeyad Rajabi Program Manager Office

  21. Key Takeaways • Word Automation Services = server-ready version of Word • Fast! • 100% fidelity with client • Word Automation Services provides: • Layout • Export to fixed format • File conversion • Complex field calculation

  22. Word Automation Services + Open XML SDK • The SDK and Word Automation Services are designed to be complimentary • SDK for file manipulation • Word for file conversion/archiving tasks • Deals with binary formats as well Open XML SDK Print Template Documents Data PDF Word Automation Services

  23. Excel Services + Open XML SDK • Again, the SDK and Excel Services are complementary • Excel Services provides calculation and charting functionality • Excel Services in Office 2010 also includes REST API support • SDK provides manipulation and assembly functionality

  24. Microsoft Confidential Integrating Word + Excel Services demo Zeyad Rajabi Program Manager Office

  25. Key Takeaways • Office Services + Open XML SDK = Rich end to end soltutions • Each component serves a purpose • Open XML SDK is the glue that holds everything together

  26. The possibilities… New File I/O SharePoint 2010

  27. SDK + Co-Authoring • Not a traditional “service”, but the file pipeline used to enable multi-user authoring opens new solution possibilities • Solution these days span multiple users • We take care of many of the challenges in this space

  28. Microsoft Confidential Integrating CoauthoringServer-side solution as a coauthoring client demo Zeyad Rajabi Program Manager Office

  29. Key Takeaways • Documents open in the client application are no longer off limits to server code • Don’t have to rely on client solution • The document is the thing you program against at run time, not the application API

  30. Demos... I Have More... • Come talk to me after this presentation • Find me at the Office booth • Bring a USB key to copy source code of demos • Or, download demos at Eric White’s or Zeyad Rajabi + Brian Jones’ blog

  31. Links + Resources • Blogs • Eric White’s blog: http://blogs.msdn.com/ericwhite • Doug Mahugh’s blog: http://blogs.msdn.com/dmahugh • Zeyad Rajabi + Brian Jones’ blog: http://blogs.msdn.com/brian_jones • John Durant’s blog: http://blogs.msdn.com/johnrdurant • MSDN • Contains how-to articles and documentation • Forums related to SDK, code snippets download • 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 (ex. PowerTools) • 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

  32. YOUR FEEDBACK IS IMPORTANT TO US! Please fill out session evaluation forms online at MicrosoftPDC.com

  33. Any questions? Want to share scenarios/solutions? Q&A

  34. Learn More On Channel 9 • Expand your PDC experience through Channel 9 • Explore videos, hands-on labs, sample code and demos through the new Channel 9 training courses channel9.msdn.com/learn Built by Developers for Developers….

More Related