- 系列文章简介
- Office 365开发概述及生态环境介绍
- Office 365开发环境搭建
- Microsoft Graph
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Hosting; | |
namespace web | |
{ | |
public class Program |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Microsoft.Identity.Client; | |
using Microsoft.Graph; | |
using System.Net.Http; | |
/// <summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Microsoft.Office.Tools.Ribbon; | |
using Microsoft.Office.Interop.Excel; | |
namespace ExcelAddIn3 | |
{ | |
public partial class Ribbon1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Imports Microsoft.Office.Interop.Excel | |
Imports Microsoft.Office.Tools.Ribbon | |
Public Class Ribbon1 | |
Private Sub Ribbon1_Load(ByVal sender As System.Object, ByVal e As RibbonUIEventArgs) Handles MyBase.Load | |
End Sub | |
Private Sub Button1_Click(sender As Object, e As RibbonControlEventArgs) Handles Button1.Click |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub ReportGeneration() | |
' 这个方法用来生成销售数据,并且基于这些数据生成一个柱状图表 | |
' 作者:陈希章 | |
Dim sh As Worksheet | |
Set sh = ThisWorkbook.Worksheets.Add | |
sh.Activate | |
Dim rng As Range |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GetAPIValues | |
description: '' | |
host: EXCEL | |
api_set: {} | |
script: | |
content: | | |
$("#run").click(() => tryCatch(run)); | |
async function run() { | |
await Excel.run(async (context) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.Graph; | |
using Microsoft.IdentityModel.Clients.ActiveDirectory; | |
using System; | |
using System.Threading.Tasks; | |
namespace MicrosoftGraphSampleUseADAL | |
{ | |
//这个代码演示了如何使用ADAL和Microsoft Graph库来实现访问,并且分别实现了国际版和国内版 | |
//作者:陈希章 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: YouImage | |
description: Create a new snippet from a blank template. | |
host: EXCEL | |
api_set: {} | |
script: | |
content: | | |
$("#run").click(() => tryCatch(run)); | |
var dec2hex = function(d) { | |
if (d > 15) { |
OlderNewer