google-slides

Slides App: getActivePresentation error after v8 migration

无人久伴 提交于 2020-07-23 06:14:54
问题 Seems to happen when you are logged in with 2 different accounts to Google and test the app - 1 account in Chrome browser and another in Google Slides app or Apps Script panel. Other than that, all works fine. I have a function imageToSlide called from html template like this: google.script.run .withSuccessHandler(sidebar.onSuccess) .withFailureHandler(sidebar.onAddDocumentError) .imageToSlide(url, link, width, height); Inside it I do var presentation = SlidesApp.getActivePresentation();

Slides App: getActivePresentation error after v8 migration

泪湿孤枕 提交于 2020-07-23 06:13:22
问题 Seems to happen when you are logged in with 2 different accounts to Google and test the app - 1 account in Chrome browser and another in Google Slides app or Apps Script panel. Other than that, all works fine. I have a function imageToSlide called from html template like this: google.script.run .withSuccessHandler(sidebar.onSuccess) .withFailureHandler(sidebar.onAddDocumentError) .imageToSlide(url, link, width, height); Inside it I do var presentation = SlidesApp.getActivePresentation();

Slides App: getActivePresentation error after v8 migration

守給你的承諾、 提交于 2020-07-23 06:12:32
问题 Seems to happen when you are logged in with 2 different accounts to Google and test the app - 1 account in Chrome browser and another in Google Slides app or Apps Script panel. Other than that, all works fine. I have a function imageToSlide called from html template like this: google.script.run .withSuccessHandler(sidebar.onSuccess) .withFailureHandler(sidebar.onAddDocumentError) .imageToSlide(url, link, width, height); Inside it I do var presentation = SlidesApp.getActivePresentation();

How to call a function via a link/button on a Google Slide?

一曲冷凌霜 提交于 2020-07-16 06:48:27
问题 I want to be able to send a formatted email by clicking a link/button on a Google Slide. An example scenario would be sending a feedback form to all staff after a meeting, with the link on the very last slide. I already have the code for the email in Google Script and it works perfectly fine when I run it (I also have an HTML file for the format), but I cannot find a way to run it via a link/button on a slide. I would rather not run it every time the slide is open, only when a special link

How to call a function via a link/button on a Google Slide?

旧巷老猫 提交于 2020-07-16 06:48:07
问题 I want to be able to send a formatted email by clicking a link/button on a Google Slide. An example scenario would be sending a feedback form to all staff after a meeting, with the link on the very last slide. I already have the code for the email in Google Script and it works perfectly fine when I run it (I also have an HTML file for the format), but I cannot find a way to run it via a link/button on a slide. I would rather not run it every time the slide is open, only when a special link

Can I inject conditional formatting from Google Sheets into Google Slides using Google Apps Script?

依然范特西╮ 提交于 2020-06-29 03:58:08
问题 I've created a script that allows me to use data stored in a Google Sheet to generate a set of Google Slides (based on a pre-formatted template slide). RAGStatus in the script below references a cell within the Google Sheet that has conditional formatting. If the cell states "Red" then the cell is filled with red colour. When I run the script, the correct data is injected into the Google Slide, but appears as a text string without the colour formatting. Is there a way to inject the data and

Control Google Docs embedded viewer with JavaScript

穿精又带淫゛_ 提交于 2020-05-25 06:56:29
问题 I need to control the embedded Google Docs viewer in my site. More specifically I need to be able to enable/disable the controls for Google Slides view and to be able to start/stop the presentation with JavaScript. I was not able to find any JavaScript API for that, nor I have been able to add my host so my JavaScript to be able to communicate with the iframe content. Anyone did something like this? 回答1: Google Docs doesn't work like that at all. Here are the steps you will need to take. 1:

Is it possible to add local image to Slide using Google Slides API and Python?

旧时模样 提交于 2020-04-07 07:54:55
问题 I want to create a new slides out of the local images using Python. Unfortunately, I do not see an example to upload a local image, only an image URL via the official documentation. That's why I'm wondering is it possible to do that at all? If it is I would appreciate any kind of help. Thank you very much 回答1: From the official documentation: https://developers.google.com/slides/how-tos/add-image If you want to add private or local images to a slide, you'll first need to make them available

Copying Multiple Slides from a Master Slide Desk using Google Apps Script

坚强是说给别人听的谎言 提交于 2020-03-25 06:04:39
问题 I have created a code which replaces placeholders on google slides. The starting point of this project is a google form. Once the google form has been submitted - then the relevant data from google form is entered on the google slides template. See below code. I am looking to create a question on the form where people will be able to select multiple slides to be included (2 Credential slides for example out of 10) function PoD() { SpreadsheetApp.getActiveSpreadsheet().getSheetByName("A-PoD")

Copying Multiple Slides from a Master Slide Desk using Google Apps Script

你说的曾经没有我的故事 提交于 2020-03-25 06:02:38
问题 I have created a code which replaces placeholders on google slides. The starting point of this project is a google form. Once the google form has been submitted - then the relevant data from google form is entered on the google slides template. See below code. I am looking to create a question on the form where people will be able to select multiple slides to be included (2 Credential slides for example out of 10) function PoD() { SpreadsheetApp.getActiveSpreadsheet().getSheetByName("A-PoD")