Skip to content

Instantly share code, notes, and snippets.

View jipyua's full-sized avatar

MSFT-jipyua jipyua

View GitHub Profile
@jipyua
jipyua / Bugbash insertooxml.yaml
Last active May 14, 2018 09:37
Executes a basic Word API call using TypeScript. - Shared with Script Lab
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\"