Office Open XML Developer Workshop SpreadsheetML Basics.

Slides:



Advertisements
Similar presentations
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Advertisements

The following 10 questions test your knowledge of client site assignment in Configuration Manager Configuration Manager 2007 Client Site Assignment.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
The following 10 questions test your knowledge of Internet-based client management in Configuration Manager Configuration Manager 2007 Internet-Based.
The following 10 questions test your knowledge of desired configuration management in Configuration Manager Configuration Manager Desired Configuration.
WordprocessingML Basics
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Integrating data and documents
Open XML Developer Workshop DrawingML Basics. Open XML Developer Workshop Disclaimer The information contained in this slide deck represents the current.
SpreadsheetML Advanced
SpreadsheetML Basics.
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Open XML Developer Workshop PresentationML. Open XML Developer Workshop Disclaimer The information contained in this slide deck represents the current.
DrawingML Basics.
© 2014 Microsoft Corporation. All rights reserved.
MIX 09 4/15/ :14 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Open XML Developer Workshop SpreadsheetML Advanced.
Multitenant Model Request/Response General Model.
Announcing Demo Announcing.
Office Open XML Developer Workshop Office Open XML Overview Štěpán Bechynský.
Open XML Developer Workshop SpreadsheetML Advanced.
The information contained in this document represents the current view of Microsoft Corporation on the issues discussed as of the date of publication.
Session 1.
Vital Signs: Performance Monitoring Windows Server
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
 Rico Mariani Architect Microsoft Corporation.
Conditions and Terms of Use
© 2012 Microsoft Corporation. All rights reserved.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Print Remaining Documents © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Document Attachment –Replace OLE Notes © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Office Open XML Developer Workshop WordprocessingML Basics.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Feature: Employee Self Service Timecard Entry © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
demo Instance AInstance B Read “7” Write “8”

Office Open XML Developer Workshop Custom XML Integrating data and documents.
customer.
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Open XML Developer Workshop WordprocessingML Basics.
demo Demo.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
projekt202 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
The CLR CoreCLRCoreCLR © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks.
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.

Open XML Developer Workshop XSLT and Open XML. Open XML Developer Workshop Disclaimer The information contained in this slide deck represents the current.
Event Title Event Date. Module 02—Introduction to Dimensional Modeling Techniques Name Title Microsoft Corporation.
This document is provided for informational purposes only and Microsoft makes no warranties, either express or implied, in this document. Information.
Event Title Event Date. Module 05—Publishing and Accessing Reports with Reporting Services Name Title Microsoft Corporation.
Office 365 Development July 2014.
Using Parallelspace TEAM Models to Design and Create Custom Profiles
5/22/2018 3:04 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
XSLT and Open XML.
Microsoft Build /9/2018 8:04 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Parallelspace PowerPoint Template for ArchiMate® 2.1 version 1.1
Parallelspace PowerPoint Template for ArchiMate® 2.1 version 2.0
Возможности Excel 2010, о которых следует знать
Title of Presentation 12/2/2018 3:48 PM
Excel Rest API Sudhi Ramamurthy Program Manager, Office Extensibility
8/04/2019 9:13 PM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
PENSACOLA ENERGY WORK PLAN OCTOBER 10, 2016
Шитманов Дархан Қаражанұлы Тарих пәнінің
Title of Presentation 5/24/2019 1:26 PM
Presentation transcript:

Office Open XML Developer Workshop SpreadsheetML Basics

Office Open XML Developer Workshop Disclaimer The information contained in this slide deck represents the current view of Microsoft Corporation on the issues discussed as of the date of publication. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information presented after the date of publication. This slide deck is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS DOCUMENT. Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under copyright, no part of this slide deck may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft Corporation. Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this slide deck. Except as expressly provided in any written license agreement from Microsoft, the furnishing of this slide deck does not give you any license to these patents, trademarks, copyrights, or other intellectual property. Unless otherwise noted, the example companies, organizations, products, domain names, addresses, logos, people, places and events depicted herein are fictitious, and no association with any real company, organization, product, domain name, address, logo, person, place or event is intended or should be inferred. © 2006 Microsoft Corporation. All rights reserved. Microsoft, 2007 Microsoft Office System,.NET Framework 3.0, Visual Studio, and Windows Vista are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. The names of actual companies and products mentioned herein may be the trademarks of their respective owners.

Office Open XML Developer Workshop Objectives This module covers the core concepts underlying all SpreadsheetML documents: Workbook Architecture Anatomy of an XLSX Rows, columns, values, formulas Strings: inline plain text, rich text, shared strings Formatting Options Calculation Chain

Office Open XML Developer Workshop SpreadsheetML Workbook properties table chart styles calcChain sharedStrings sheet1..N drawing

Office Open XML Developer Workshop SpreadsheetML Design Goal: Performance SpreadsheetML has been optimized in many ways, based on analysis of real-world spreadsheet usage patterns: Small tag size (often a single character) Shared strings Shared formulas Sparse table markup allowed Optional r=“A1” attribute for faster loading

Office Open XML Developer Workshop The minimal XLSX Required: workbook.xml, the document “start part” Required: at least one sheet, worksheet.xml Required: one relationship part (.rels) Must be in a _rels folder Required: [Content_Types].xml Required part for all Open XML documents Three content types must be defined: SpreadsheetML main document (for the start part) Worksheet Package relationships (for the required relationships) Everything else is optional Worksheet is required, but may be empty

Office Open XML Developer Workshop Minimal Workbook/Worksheet workbook.xml: sheet1.xml: DEMO relationship

Office Open XML Developer Workshop SHEETS

Office Open XML Developer Workshop Sample Sheet =‘C:\[ExternalBook.xlsx]Sheet1’! $A$1

Office Open XML Developer Workshop Worksheet Part – Main Sections 1.Sheet properties (everything before sheetData) Viewing: selected tab, active cell, etc. Print options: orientation, resolution, page margins, etc. Miscellaneous: default row height, sheet protection, etc. 2.The cell table (sheetData, empty if not a worksheet) Row, cells, values, strings (shared-strings indexes), formulas

Office Open XML Developer Workshop Sheet Properties

Office Open XML Developer Workshop Cell Table: element

Office Open XML Developer Workshop mergeCells

Office Open XML Developer Workshop The Sheet-Level Pieces Comments Formulas & References & Defined Names Tables AutoFilter External Links General Special Directory Relationships PivotTable PivotCache QueryTable Metadata

Office Open XML Developer Workshop WORKBOOK PROPERTIES

Office Open XML Developer Workshop Workbook Properties: Elements

Office Open XML Developer Workshop STRINGS

Office Open XML Developer Workshop Strings in SpreadsheetML Two ways a string can be stored: 1.Inline strings Provided for ease of translation/conversion Useful in XSLT scenarios Excel and other consumers may convert to shared strings 2.An entry in the shared-strings table May be either a simple string or formatted text These approaches may be mixed/combined

Office Open XML Developer Workshop Inline Strings Inline string support provides a very simple mechanism for programmatically populating a worksheet Especially useful in XSLT scenarios Excel 2007 converts to shared strings on save If you’re consuming Open XML documents, you must handle both cases: inline strings and/or shared strings To convert our shared-strings example to inline strings, just replace sheetdata: Paris Seattle London Copenhagen Paris London

Office Open XML Developer Workshop Shared Strings By default, strings are stored in a shared-strings part: Each unique string is stored once Cells store the index (0-based) of the string This design is based on analysis of typical spreadsheet contents: highly repetitive strings are very common Benefits: Users: reduced file size, improved performance Developers: all strings are in one part, simplifying search, localization, and other common string-handling objectives

Office Open XML Developer Workshop Shared Strings: example Worksheet contents: sharedStrings.xml contents: Paris Seattle London Copenhagen 6 string references, 4 unique strings Paris = string 0 0

Office Open XML Developer Workshop Rich Text Strings Stored in sharedStrings.xml One entry for the entire cell Note run properties Cell refers to string 0: This cell contains bold and italics text. 0

Office Open XML Developer Workshop FORMATTING

Office Open XML Developer Workshop SpreadsheetML Formatting Options Direct Cell Formatting (XF) Fonts Fills Borders Numeric Formatting Cell Styles Table Styles PivotTable Styles

Office Open XML Developer Workshop Direct Formatting DEMO

Office Open XML Developer Workshop Applying Cell, Table, PivotTable Styles Referenced by Name Explicit formatting is described using formatting records (xf)

Office Open XML Developer Workshop FORMULAS AND CALC CHAIN

Office Open XML Developer Workshop Formulas, References, Defined Names Excel saves out exactly what you see in the cell at runtime. Implication: Excel re-parses the formula on load, and serializes it on save Formula links to external workbooks: Abstract file path to relationships part Excel caches snapshot of external workbook structure (sheets & cell tables)

Office Open XML Developer Workshop Formulas: example SUM(A1:A3) DEMO

Office Open XML Developer Workshop