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: Insert external worksheets (11) | |
description: Inserts worksheets from another workbook into the current workbook. | |
host: EXCEL | |
api_set: {} | |
script: | |
content: | | |
$("#file").change(getBase64); | |
$("#insert-sheets").click(() => tryCatch(insertSheets)); | |
let externalWorkbook; |
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: citation item | |
description: Performs a basic Word API call using TypeScript. | |
host: WORD | |
api_set: {} | |
script: | |
content: | | |
$("#run").click(() => tryCatch(run)); | |
async function run() { | |
// Gets the current selection and changes the font color to red. |
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: Preview API testing | |
description: Formats text with pre-built styles. | |
host: WORD | |
api_set: {} | |
script: | |
content: > | |
$("#add-preset").click(() => tryCatch(run)); | |
//$("#add-preset2").click(() => tryCatch(addPreStyledFormattedText2)); |
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: Track Change | |
description: Performs a basic Word API call using TypeScript. | |
host: WORD | |
api_set: {} | |
script: | |
content: | | |
$("#run").click(() => tryCatch(run)); | |
$("#run2").click(() => tryCatch(run2)); | |
$("#run3").click(() => tryCatch(run3)); |
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: Insert external worksheets (11) | |
description: Inserts worksheets from another workbook into the current workbook. | |
host: EXCEL | |
api_set: {} | |
script: | |
content: | | |
$("#file").change(getBase64); | |
$("#insert-sheets").click(() => tryCatch(insertSheets)); | |
let externalWorkbook; |
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: 'ShadingTestGetSet- BugBash ' | |
description: >- | |
This sample shows how to perform operations on the styles in the current | |
document and how to add and delete custom styles. | |
host: WORD | |
api_set: {} | |
script: | |
content: > | |
$("#shading").click(() => tryCatch(getShadingProperties)); |
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: Addin Field | |
description: Create a new snippet from a blank template. | |
host: WORD | |
api_set: {} | |
script: | |
content: | | |
$("#run").click(() => tryCatch(run)); | |
$("#run2").click(() => tryCatch(runHyperlink)); | |
async function 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: InsertFileFromBase64 (1) | |
description: Performs a basic Word API call using TypeScript. | |
host: WORD | |
api_set: {} | |
script: | |
content: | | |
$("#file").change(getBase64); | |
$("#insert-sheets").click(() => tryCatch(insertDocument)); | |
var externalDoc; |
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: InsertFileFromBase64 | |
description: Performs a basic Word API call using TypeScript. | |
host: WORD | |
api_set: {} | |
script: | |
content: | | |
$("#file").change(getBase64); | |
$("#insert-sheets").click(() => tryCatch(insertDocument)); | |
let externalDoc; |
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: html with image | |
description: 'Inserts, updates, and retrieves content controls.' | |
host: WORD | |
api_set: {} | |
script: | |
content: | | |
$("#insert").click(() => tryCatch(insertPreHtml)); | |
async function insertPreHtml() { | |
await Word.run(async (context) => { |
NewerOlder