Skip to content

MS Powerpoint Addin : Insert Slide from Base 64 Powerpoint addin API does not carry over the original formatting of the slide #2780 #4428

Description

@vasuki-devi

Provide required information needed to triage your issue

Your Environment

  • Platform [PC desktop, Mac, iOS, Office on the web]: PC Desktop
  • Host [Excel, Word, PowerPoint, etc.]: Powerpoint
  • Office version number: Microsoft® PowerPoint® for Microsoft 365 MSO (Version 2207 Build 16.0.15427.20182) 64-bit
  • Operating System: Windows 10 home
  • Browser (if using Office on the web): Chrome

Expected behavior

In my application, I'm using the 'Insert Slide from Base 64' function in Powerpoint API.
The slide inserted should use the same original formatting from the PPTX file (from which the base64 string is created)

PowerPoint.run(function (context) { return context.sync.then(function(){ context.presentation.insertSlidesFromBase64(base64String),{ formatting: 'KeepSourceFormatting' }; return context.sync() }) });

Current behavior

The content formatting which is present in the original PPTX file is not carried over when using the PowerPoint API.

Steps to reproduce

  1. Open Powerpoint - -Create new Presentation -Go to script lab - click on run
  2. Insert file that I've attached in this post
  3. click on 'Insert all Slides'
  4. Now open the file that I've attached in another window, you can see that the slides that were inserted using script lab and the original PPTX file. The formatting will be different.

Provide additional details

Context

I have an application, which stores a list of PPTX files in cloud, the user can select the file using the addin and insert all the slides from the PPTX file.

Useful logs

Lookup_addin_issue_file.pptx
msaddin-bug

Thank you for taking the time to report an issue. Our triage team will respond to you in less than 72 hours. Normally, response time is <10 hours Monday through Friday. We do not triage on weekends.

Metadata

Metadata

Labels

Area: PowerPointIssue related to PowerPoint add-insType: product feature requestOffice JS ideas that should be posted to aka.ms/m365dev-suggestions (formerly User Voice.)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions