Giter Club home page Giter Club logo

exportingdataopenxml's Introduction

Microsoft 365 DevDays ExportingDataOpenXML Workshop

Contents

Exporting Data using Microsoft Graph, OXML, and SDK Office Add-ins

In this repo you'll find steps to create an application which generates an Excel workbook, modify the application to drive the worksheet generation by data and pin an Excel add-in to that workbook.

What the code does

The code is generated initially by the Open XML SDK Productivity Tool. This reflects C# code from a template document. This provides the base from which customizations can be made.

The worksheet generation is modified using snippets in this tutorial to build a table from Microsoft Graph generated JSON data.

Finally, the worksheet generation code is modified to "pin" (auto open) an Excel JS add-in to the workbook.

Report Cover Report Data Sheet

Prerequisites

  • Office account tenant for your team
  • Visual Studio (Community is fine)
    • NOTE: Install the following workloads for VS:
      • .Net desktop development
      • Office/Sharepoint development
      • .Net Core cross-platform development
  • Git command line tools
  • Web browser (Chrome or Edge are fine)
  • Open XML SDK Productivity Tool
  • Open XML SDK from nuget.org

Get started

  1. Start by cloning this whole repository to your local system so you have all the data files, example reports, folders and working solution for reference. Use the Github Clone or download button to copy the URL and then issue this command:

    git clone https://github.com/InteropEvents/ExportingDataOpenXML.git

  2. Or, alternatively, download the zip file using the Github Clone or download button:

    Download Zipfile

  3. Go to the Tools folder in the repo and run:

    Tools\OpenXMLSDKToolV25.msi

    This will install the Open XML SDK Productivity Tool used in Module 1.

Follow the tutorial

  1. Now you are ready to follow the tutorial. Start with Module 1, which walks you through generating the Microsoft Graph data and the initial C# Open XML SDK project.

  2. Complete the main tutorial by following Module 2. This will lead you through customizing the code to use the Microsoft Graph data to build the worksheet table.

  3. If you have time, follow the Advanced Module to generate web extension parts which will pin or autoload the Excel add-in to this tutorial's workbook.

exportingdataopenxml's People

Contributors

tomjebo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.