Skip to content

Sample or Example For Office.js in Powerpoint #1

@mumarniaz

Description

@mumarniaz

Hi @EricWhiteDev
Thank you for putting this out. This is really great and very helpful but can you please include some examples specifically using it in Office.js specially in PowerPoint. You have this example:

Use with Office Add-ins
Flat OPC is the document format you must use when building Word, Excel, and PowerPoint JavaScript/TypeScript add-ins:

// In an Office Add-in — get the document as Flat OPC via the Office.js API
// then manipulate with OpenXmlSdkTs
const doc = await WmlPackage.open(flatOpcString);
const mainPart = await doc.mainDocumentPart();
// ... modify the document ...
const modifiedFlatOpc = await doc.saveToFlatOpcAsync();
// Set the modified Flat OPC back via the Office.js API

But if you can add some complete examples including powerpoint specifically, that will be very helpful.
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions