-
Notifications
You must be signed in to change notification settings - Fork 120
Excel & PPT Content Examples don't work on Desktop Apps & on the Browser the content element can't be moved #6604
Description
URL of sample
Describe the bug
I downloaded this repository and try to run the content examples listed above. I followed the recommended npm install and npm run start but the add-in is not shown under the development add-ins section in the Add-ins Popup. The same error happens on both Mac OS and Windows. I tried also the Edge browser on MacOS and Windows. When I upload the manifest with the local server running (npm run dev-server) I get and error saying the manifest is not valid.
However, the add-in is listed under "My Add-ins" and I was able to add it to both Excel worksheet and PPT Slide. The Get Data From Selection button works but I can't move the content element neither on Excel or PPT online. Opening the same documents on the Desktop apps I can move them, but I get this error:
FYI, running npm run validate on both examples on MacOS and Windows fails. I get this error:
Error: Invalid regular expression: /^(?!.*[\r\n\f\b\v\a\t])[\S]*\.xll$/u: Invalid escape
To Reproduce
Steps to reproduce the behavior:
- Go to 'Office-Add-in-samples' and download the repository
- Navigate to:
- Run the recommended commands
npm installandnpm run start
Expected behavior
The PPT and Excel Desktop apps should list the Excel/PPT Content Add-in
Test on the web
- As an alternative run
npm installandnpm run dev-server - Open PPT/Excel on the Edge Browser
- Click on the Add-ins Command under the HOME tab
- Click the
Advanced...link - Click the
Upload My Add-inlink on the top-right corner of the Office Add-ins Dialog - Locate the manifest.json of the PPT/Excel Content example and upload it
- Click the added PPT/Excel Content Add-in to add it to the current slide or worksheet
- Try to move the added element
Expected behavior
You should be able to move the content element.
Environment
- Platform: PC desktop, Mac, Office Online
- Host: Excel, PowerPoint
- Office version number: Windows: 19725.20170, MacOS: 16.107.1 (26031524)
- Operating System: Windows 11 Enterprise 24H2, MacOS 26.3 (25D125)
- Browser (if using Office Online): Windows Edge: 145.0.3800.97 , MacOS Edge: 146.0.3856.62
Additional context
Add any other context about the problem here.