1

I'm creating a PowerPoint Add-in (Javascript based Office Add-in for the web, aka Office.js), and need to read the Notes (Speaker Notes) for the current slide.

I can access the shapes and other content on a slide (reading and inserting new content) but cannot see how to access the Speaker Notes. Is this a supported scenario? And if so, how can I do it?

Rohit Gupta
  • 4,022
  • 20
  • 31
  • 41
LouisDK
  • 19
  • 2
  • Each slide has a .NotesPage property that returns, for all practical purposes, a slide. The quick and dirty way to get there is to get the slide's .NotesPage.Shapes(2) which will be the notes text placeholder. Or .NotesPage.Shapes(2).TextFrame.TextRange.Text to get the notes text. This can get messed up if someone's edited the notes page to remove then replace the text placeholder. I don't know whether JS has access to the same object model as VBA, but this might give you a starting point. – Steve Rindsberg Feb 18 '22 at 16:02
  • 1
    Office.js doesn't support access to the speaker notes. – Rick Kirkham Feb 18 '22 at 17:45
  • @RickKirkham Thanks for filling in that piece of the puzzle. – Steve Rindsberg Feb 19 '22 at 17:40

1 Answers1

1

As stated by Rick Kirkham, this feature was not available and is still not available as of July 2023.

I was wondering if there was already a feature request for that, but after doing a quick search, I couldn't find anything on the dedicated Microsoft 365 Developer Platform forum (previously known as UserVoice).

So, I've posted a new feature request here :

Allow reading and editing of PowerPoint presenter notes via the Office.js API.

DecimalTurn
  • 3,243
  • 3
  • 16
  • 36
  • This isn't an answer (and there's no programming question here). Please don't respond to off-topic questions. Also, asking people to go to another site to vote on something... isn't what Stack overflow is for. – David Makogon Jul 22 '23 at 16:39
  • @DavidMakogon - I've removed the asking for upvote. However, can you elaborate on why this isn't a programming question? – DecimalTurn Jul 22 '23 at 18:34
  • It’s because the only thing the OP included was a set of requirements and then a request for sample code. That’s the problem. You can’t just post requirements and have this site fulfill them. You have to show all details *including* what’s been tried (code, data, errors, etc) - a [mcve]. – David Makogon Jul 22 '23 at 19:27
  • 1
    @DavidMakogon - If I understand your second comment correctly, you are saying that it is a programming question, but it doesn't meet SO quality standards. I not necessarily disagree, but when this type of question has an answer it's usually 1 or 2 lines of code, so it's not like they gave requirements and expected us to write a full program. Plus, the need to provide a minimal reproducible example is mostly needed when someone wants to help with debugging an issue, not when they are asking to accomplish a simple thing that should be obvious. – DecimalTurn Jul 22 '23 at 20:38
  • 3
    @DavidMakogon: how should the OP include example code for a feature which isn't currently available in some API? Note this Q&A is subject on [Meta](https://meta.stackoverflow.com/questions/425692/how-to-efficiently-avoid-have-they-added-this-feature-yet-questions), maybe you want to contribute there? – Doc Brown Jul 23 '23 at 14:40