This file contains hidden or 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
/*************************************************/ | |
/* REQUIRED BY WEB PACK - DO NOT DELETE */ | |
/*************************************************/ | |
function getGlobal() { | |
return typeof self !== "undefined" | |
? self | |
: typeof window !== "undefined" | |
? window | |
: typeof global !== "undefined" | |
? global |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<OfficeApp | |
xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" | |
xmlns:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides" | |
xsi:type="TaskPaneApp"> | |
<Id>5226365f-62d0-435f-a4af-cc6a7bd753b2</Id> | |
<Version>1.0.0.1</Version> | |
<ProviderName>TheOfficeContext.com</ProviderName> |
This file contains hidden or 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
<script type="text/javascript" src="node_modules/easyews/easyews.min.js"></script> |
This file contains hidden or 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.Runtime.InteropServices; | |
using System.Threading; | |
using System.Windows.Forms; | |
namespace NonModalMessageBox | |
{ | |
/// <summary> | |
/// Provides an asyncronous MessageBox. You can use this static class to | |
/// present a message to the usser while your code can continue to run. |
This file contains hidden or 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
Add-Type -assembly "system.io.compression.filesystem";$vscode_url = "https://aka.ms/win32-x64-user-stable";$vscode_output = $env:USERPROFILE + "\downloads\vscode.exe";$node_url = "https://nodejs.org/dist/latest/win-x64/node.exe";$node_output = $env:USERPROFILE + "\downloads\node.exe";$node_install_path = $env:USERPROFILE + "\node";$npm_url = "https://nodejs.org/dist/npm/npm-1.4.9.zip";$npm_output = $env:USERPROFILE + "\downloads\npm.zip" | |
Invoke-WebRequest -Uri $vscode_url -OutFile $vscode_output | |
Invoke-WebRequest -Uri $node_url -OutFile $node_output | |
Invoke-WebRequest -Uri $npm_url -OutFile $npm_output | |
Start-Process -FilePath $vscode_output -ArgumentList ('/VERYSILENT', '/MERGETASKS=!runcode') -Wait | |
md $node_install_path | |
copy $node_output $node_install_path | |
[io.compression.zipfile]::ExtractToDirectory($npm_output, $node_install_path) | |
[Environment]::SetEnvironmentVariable("Path", [Environment]::GetEnvironmentVariable("Path", [EnvironmentVariableTarget]::User) + ";" + $node_install_path, [EnvironmentVariableTarg |
This file contains hidden or 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
async function main(context: Excel.RequestContext) { | |
// Set range A1 on selectedSheet | |
let workbook = context.workbook; | |
let worksheets = workbook.worksheets; | |
let selectedSheet = worksheets.getActiveWorksheet(); | |
selectedSheet.getRange("A1").values = [ | |
["Hello World"] | |
]; | |
} |
This file contains hidden or 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
ExtendedDialogResult LobjResult = ExtendedMessageBox.Show("Hello World - Are you ok?", | |
"The Office Context", | |
MessageBoxButtons.OKCancel, | |
MessageBoxIcon.Information, | |
"Do not show this message again."); | |
if(LobjResult.Result == DialogResult.OK && LobjResult.IsChecked) | |
{ | |
// do something | |
} |
This file contains hidden or 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
<html> | |
<head> | |
<!-- DEBUG --> | |
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/davecra/easyEws/easyEws.js"></script> | |
<!-- Or, MINIFIED --> | |
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/davecra/easyEws/easyEws.min.js"></script> | |
</head> | |
</html> |
This file contains hidden or 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
async function run() { | |
var msg = Office.context.mailbox.item; | |
msg.to.getAsync(function(asyncResult) { | |
if(asyncResult.status == Office.AsyncResultStatus.Failed) { | |
$("#recipientResult").text(asyncResult.error); | |
} else { | |
/** @type {Office.EmailAddressDetails[]} */ | |
var recips = asyncResult.value; | |
// are there any recipients at all | |
if(recips == null || recips.length == 0) { |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- Note: EwsEditor has replaced the "utf-16" text in the first line with"utf-8" in order for the XML to render in the response web control. --> | |
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> | |
<s:Header> | |
<h:ServerVersionInfo MajorVersion="15" MinorVersion="20" MajorBuildNumber="2305" MinorBuildNumber="24" Version="V2018_01_08" xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" /> | |
</s:Header> | |
<s:Body> | |
<m:ExpandDLResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"> | |
<m:ResponseMessages> | |
<m:ExpandDLResponseMessage ResponseClass="Success"> |