Skip to content

Sample or Example For Office.js in Powerpoint #1

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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