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": "Excel Testing", | |
"playgroundVersion": 1 | |
} |
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: Word createDoucment | |
description: '' | |
author: jipyua | |
host: WORD | |
api_set: {} | |
script: | |
content: | | |
$('#file').change(createDocument); |
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: GetFileAsyncPPT | |
description: '' | |
author: jipyua | |
host: POWERPOINT | |
api_set: {} | |
script: | |
content: | | |
$('#selectedFile').change(getFullFile); | |
function getFullFile() { |
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: ppt createDocument | |
description: '' | |
author: jipyua | |
host: POWERPOINT | |
api_set: {} | |
script: | |
content: |- | |
$('#createppt').click(function () { createPPTDocument() }); | |
function createPPTDocument() { |
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: XL createWorkbook | |
description: This is the script to test the setting changed event | |
author: jipyua | |
host: EXCEL | |
api_set: {} | |
script: | |
content: |- | |
$('#createxl').click(function () { createXLDocument() }); | |
function createXLDocument() { | |
var file = document.getElementById('myFile').files[0]; |
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: Blank snippet - 1 | |
description: '' | |
author: jipyua | |
host: WORD | |
api_set: {} | |
script: | |
content: |+ | |
$("#run").click(async () => { | |
OfficeHelpers.Utilities.log('Start'); | |
await run(); |
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: Add & hide worksheet | |
description: '' | |
author: jipyua | |
host: EXCEL | |
api_set: {} | |
script: | |
content: | | |
$("#add-worksheet").click(addWorksheet); | |
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: Bugbash insertooxml | |
description: Executes a basic Word API call using TypeScript. | |
author: jipyua | |
host: WORD | |
api_set: {} | |
script: | |
content: | | |
var startwithinlinecc = "<?xml version=\"1.0\" standalone=\"yes\"?>\r\n<?mso-application progid=\"Word.Document\"?>\r\n<pkg:package xmlns:pkg=\"http://schemas.microsoft.com/office/2006/xmlPackage\"><pkg:part pkg:name=\"/_rels/.rels\" pkg:contentType=\"application/vnd.openxmlformats-package.relationships+xml\" pkg:padding=\"512\"><pkg:xmlData><Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\"><Relationship Id=\"rId1\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument\" Target=\"word/document.xml\"/></Relationships></pkg:xmlData></pkg:part><pkg:part pkg:name=\"/word/_rels/document.xml.rels\" pkg:contentType=\"application/vnd.openxmlformats-package.relationships+xml\" pkg:padding=\"256\"><pkg:xmlData><Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\" |
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: Paint | |
description: Uses range formatting and external libraries to draw a colorful gradient within a range. Contributed by Alexander Zlatkovski. | |
author: jipyua | |
host: EXCEL | |
api_set: {} | |
script: | |
content: |- | |
$("#prepCanvas").click(prepCanvas); | |
$("#painting").click(startPainting); | |
var canvas, canvasCtx; |
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: Scroll to range | |
description: Shows how to scroll to a range with and without selection. | |
author: jipyua | |
host: WORD | |
api_set: {} | |
script: | |
content: |- | |
$("#getrange").click(() => tryCatch(getRange)); | |
$("#inserttext-crash").click(() => tryCatch(insertText)); |
OlderNewer