I am trying to develop a basic Web Add-In for PowerPoint. What I want to do is to select either the Title Area or the Text Area from within the Office JS API, and then paste some text into these areas. However, I can't find anything on it in the Office JS API documentation.
In their tutorial, Microsoft includes a "Hello World" in the slide:
function insertText() {
Office.context.document.setSelectedDataAsync('Hello World!',
function (asyncResult) {
if (asyncResult.status === Office.AsyncResultStatus.Failed) {
showNotification("Error", asyncResult.error.message);
}
});
}
(https://learn.microsoft.com/en-us/office/dev/add-ins/tutorials/powerpoint-tutorial), but you first have to click on the Title Area before being able to do this (and I would like to do it with JavaScript)
Does anyone know if this possible at this moment? (I am a bit afraid it's not as Microsoft hasn't developed a specific PowerPoint Add-In, like they did for Excel and Word). Thanks!