Exporting Data using Microsoft Graph and OpenXML SDK Tom Jebo Overview Introduction
Workbook Generation
Data Driven Sheet
Summary Introduction
Prerequisites Module 1 Module 2
Summary • Visual Studio Community • Visual Studio Code (optional) • Open XML SDK • Open XML SDK Productivity Tool • Office Dev Account (optional)
https://github.com/InteropEvents/ExportingDataOpenXML/tree/master#exportingdataopenxml Introduction
Outcomes Module 1 Module 2
Summary In Scope Out of Scope ✓ Open XML SDK Excel API’s, config, usage, etc… ✓ Office Open XML Microsoft Graph API’s ✓ Microsoft Graph Explorer (usage) ✓ Office Add-ins (pinning) Introduction
Module 1
Module 2
Summary
Focus Teams App Scenario Introduction
Module 1
Big Picture Module 2
Summary
Module 1: Auto-Generate an Excel Workbook Based on Reflected Open Generate XML SDK C# Code
Import Module 2: Use Microsoft Graph Explorer to Create JSON Data
Module 2: Modify the Open XML SDK C# Code to Customize the Table Customize with JSON Input Open XML SDK on Github Introduction
Module 1
Module 2
Summary
Demonstration Introduction
Module 1 Module 1 Overview Overview Module 2 Section 1 Section 2 Summary Summary
In this module, we will create and programmatically generate the Excel Workbook
https://github.com/InteropEvents/ExportingDataOpenXML/blob/master/Module1.md
Note:
If you run out of time, please feel free to continue working on the workshop. If you have questions or problems following the tutorial after this session, please email:
mailto:[email protected] Introduction
Module 1 Module 1 Section 2 Module 2
Summary Generate Workbook In this section, we will do the following steps: 1. Use the OpenXML SDK Productivity Tool to open a template Excel workbook 2. In the tool, reflect the C# code to programmatically generate the workbook. 3. Create a solution in Visual Studio and load the reflected code. 4. Build and run the code to verify the workbook. https://github.com/InteropEvents/ExportingDataOpenXML/blob/ master/Module1.md#reflect-code-to-build-our-report- programmatically Introduction
Module 1 Module 1 Summary Module 2
Summary
In this module, we’ve taken the initial steps toward generating Excel workbooks using C# code.
We now have a template workbook that can be generated programmatically. This is very powerful! Introduction
Module 1 Module 2 Overview Module 2
Summary
Now that we have a template, let’s customize it to build the table from our Microsoft Graph data.
We will be modifying the table and sheet generation code to use JSON data.
https://github.com/InteropEvents/ExportingDataOpenXML/blob/master/Module2.md
Note:
If you run out of time, please feel free to continue working on the workshop. If you have questions or problems following the tutorial after this session, please email:
mailto:[email protected] Introduction
Module 2 Section 1 Module 1 Module 2
Summary Import JSON data In this section we will import data from Microsoft Graph using the Explorer. This data will be pulled from Planner tasks and be in JSON format. Introduction
Module 2 Section 2 Module 1 Module 2
Summary Modify the code to use JSON data for table generation. Follow the steps in the Module 2 Tutorial to modify the code.
https://github.com/InteropEvents/ExportingDataOpenXML/blob/master/Module2.md
Verify the new sheet. Introduction
Module 1 Module 2 Summary Module 2
Summary Congratulations! You’ve successfully created a worksheet with data driven table!
Note:
If you run out of time, please feel free to continue working on the workshop. If you have questions or problems following the tutorial after this session, please email:
mailto:[email protected] Introduction
Summary Module 1 Module 2
Summary Outcomes Next Steps ✓ Auto Generate Report Workbook ✓ Data Driven Workbook →Learn →Do Introduction
Upcoming Sessions Module 1 Module 2
Today: Summary
2:00pm Build Automated Workflows in your Line of Business App Using Microsoft Flow 2:45pm Microsoft Power Platform 3:30pm Protect Your Mobile Apps with Modern Authentication and Microsoft Intune 4:00pm On-Premises Office Online and Co-Authoring Protocols Overview (MS-WOPI and MS-FSSHTTP) Introduction
Tools Module 1 Module 2
Summary Open XML Package Editor for Visual Studio: https://github.com/OfficeDev/Open-XML-Package-Editor-Power-Tool-for-Visual- Studio
OOXML Tools Extension for Chrome (search “ooxml tools chrome” and install in Chrome)
Open XML SDK Productivity Tool (search “open xml sdk 2.5”, click download, OpenXMLSDKToolV25.msi) Introduction
Support & Resources Module 1 Module 2 SDK Open XML SDK Summary https://github.com/OfficeDev/Open-Xml-Sdk OpenXMLDeveloper http://www.openxmldeveloper.org libopc http://libopc.codeplex.com (third-party open source OOXML library)
Transforming Open XML Documents using XSLT https://blogs.msdn.microsoft.com/ericwhite/2008/09/29/transforming-open-xml-documents-using-xslt/ Azure Functions https://docs.microsoft.com/en-us/azure/azure-functions/
Open Specifications
https://social.msdn.microsoft.com/Forums/en-US/home? category=openspecifications