google-slides

How to paste Google Sheets Content into a Google Slide using Apps Script?

泪湿孤枕 提交于 2019-12-13 17:26:21
问题 I´m searching now for three days and cannot find a method to get a Google Sheets Range into a Slide. var range = SpreadsheetApp.getActive().getActiveSheet().getRange('A1:B3'); var slidesPage = SlidesApp.openById(presentationId).getSlides()[0]; slidesPage.insertTable(range); It seems it is only possible to copy a table from another slide and paste it into the page. Why is it not possible to paste a range from a spreadsheet into the Slide?. At least it is possible manually. Thanks for every

How to attach Google Slides with Gmailapp sendemail

五迷三道 提交于 2019-12-13 04:35:57
问题 I am trying to send some google slides from the drive as attachment to Gmailapp sendemail function. It always seem to send pdf, and if I use blob it sends a corrupt file which doesnt open on windows. Here is what I am doing: function testemail() { var email = "name@domain.com"; var subject = "hello world"; var body = "testing"; var flyerFile = DriveApp.getFileById("1fiopyqtue"); var flyerBlob = flyerFile.getBlob(); GmailApp.sendEmail(email,subject ,body, {attachments:[flyerFile.getAs(MimeType

Bring the pageElements to front or back using apps script in Google Slides

独自空忆成欢 提交于 2019-12-11 18:55:35
问题 The stacking order is determined by the order by which they are inserted into the slide. However, some of the page elements in slides remain hidden. Is there a way to change the Order of objects in Google slides using apps script? 回答1: How about this workaround? I have experienced the same situation with you. At that time, I have moved the element using this workaround. I think that there are several workarounds for this situation. So please think of this as one of them. The flow of this

Setting width and height of tables with Google Slides Apps Script

会有一股神秘感。 提交于 2019-12-11 03:16:43
问题 I'm using Google Apps Script to manipulate a Slides file. I want to create a table on a slide and set the height/width of a row/column, of a particular cell, or of the table overall. The documentation is mysteriously silent on this, except for this page which doesn't seem very promising. Anybody know a workaround for this, or do I have to resort to the Slides API? 回答1: You want to modify the width and height of a table on Google Slides using Google Apps Script. You want to modify the width

Script to copy a range as picture and send it by mail

…衆ロ難τιáo~ 提交于 2019-12-07 22:04:28
问题 I need to create a script that does the same thing as the "copy as picture" option in MS Excel. I need certain tables located in a Google Sheets to be copied as picture and pasted in an email (Gmail). I have found a code that works converting charts to pictures and sending that through mail, but I haven't found a code that copies a table and pastes it as picture. The reason I want to paste the table as picture is to keep the format of the table since I know that building it in HTML would not

Google slides auto update links /tables linked from google sheet

六眼飞鱼酱① 提交于 2019-12-06 15:51:53
问题 I have a Google Slides presentation that has some linked cells/table to data in Google Sheets. Currently, I have to manually click each linked cell/table to update values. I need a script for Google Slides that would auto-update / batch-update / refresh these links, so that the values/tables get auto-updated. Is that possible? 回答1: Both yes and no. Charts Yes! those can be batch updated: function onOpen() { SlidesApp.getUi() // Or DocumentApp or FormApp. .createMenu('Update Charts') .addItem(

How to paste Google Sheets Content into a Google Slide using Apps Script?

空扰寡人 提交于 2019-12-02 05:16:57
I´m searching now for three days and cannot find a method to get a Google Sheets Range into a Slide. var range = SpreadsheetApp.getActive().getActiveSheet().getRange('A1:B3'); var slidesPage = SlidesApp.openById(presentationId).getSlides()[0]; slidesPage.insertTable(range); It seems it is only possible to copy a table from another slide and paste it into the page. Why is it not possible to paste a range from a spreadsheet into the Slide?. At least it is possible manually. Thanks for every help. Tanaike Unfortunately, the range of Spreadsheet cannot be directly put to the table of Slide yet (At

Downloading a Google Slides presentation as PowerPoint doc using Google Apps Script?

[亡魂溺海] 提交于 2019-12-01 23:27:00
The GUI of Google Slides offers to download a GSlides presentation as a Powerpoint (myFile.pptx). I could not find the equivalent in the Google Apps Script documentation - any pointer? EDIT Thanks to comments and answers, I tried this snippet: function testFileOps() { // Converts the file named 'Synthese' (which happens to be a Google Slide doc) into a pptx var files = DriveApp.getFilesByName('Synthese'); var rootFolder = DriveApp.getRootFolder(); while (files.hasNext()) { var file = files.next(); var blobPptx = file.getBlob().getAs('application/vnd.openxmlformats-officedocument.presentationml

Is there a way add animation to objects using a google apps script in google slides?

帅比萌擦擦* 提交于 2019-12-01 10:36:24
问题 When formatting a google slides presentation using a google apps script, is there any way to access and modify the data regarding animations of objects (text boxes, shapes, images, etc.) in order to add, delete, or modify animations? 回答1: There is currently no way to get/set animations or transitions using Google Apps Script (that I can see). It could be requested on their issue tracker. 来源: https://stackoverflow.com/questions/50458065/is-there-a-way-add-animation-to-objects-using-a-google

Google Slides - How to automatically update charts linked to a G spreadsheet

安稳与你 提交于 2019-11-29 08:45:59
I have a Google Slides presentation with charts that are linked to a specific Google Spreadsheet. As there are many charts in the presentation, I'm looking for a way to update all these linked charts automatically, or at least all of them at once. What is the best way to do this? Many thanks! You can add a custom function to a dropdown menu in the Slides UI with the following script. This gets the slides from the current presentation, loops through them, gets any charts in each slides and refreshes (updates) them. function onOpen() { var ui = SlidesApp.getUi(); ui.createMenu('Custom Menu')