google-docs

In a Google Document how to set a tables multiple rows' height to match the cell content size?

被刻印的时光 ゝ 提交于 2020-06-29 04:14:24
问题 I can click and drag each horizontal line one by one manually to match amount of content of the cell above it (how many lines of text it has), but what if you have 100 rows? How can you get from top to the bottom table here without manually dragging each horizontal line? So, if there is ONE line of text in the whole row height wise, I want the table be ONE line height, not 10 like in the below case in abc row. 回答1: This can be achieved using a bound-to-your-Doc Google Apps Script. You can

Create PDF link to the last named version of a Google Document

落花浮王杯 提交于 2020-06-28 05:58:46
问题 I have a live document which is available for download on my website (a manual for a piece of equipment). I want to be able to make changes without these minor changes being visible to the user and so thought that using named versions would be ideal. But I can't see a way to link to the most recent named version. I'm sure I could use Google Script to create a second document and duplicate into it every time I name the version, but I was thinking there should be an easier way. The URL I'm

Generate google docs with QR code from google sheet

巧了我就是萌 提交于 2020-06-24 16:39:09
问题 I have a Google Sheet with many cells, one of which is a QR code (QR code contains name and Employee ID). A Google Docs file is generated based on the values from the worksheet, by replacing placeholder text. This Google Doc will be used as a digital pass. How can I place the QR code image in the Google Docs, generated from the Google Sheets data? Ex. In the sheet, I stored Employee ID , Name , and QR Code in columns A, B, and D. I use replaceText to replace placeholder text in the Document :

Generate google docs with QR code from google sheet

时间秒杀一切 提交于 2020-06-24 16:38:29
问题 I have a Google Sheet with many cells, one of which is a QR code (QR code contains name and Employee ID). A Google Docs file is generated based on the values from the worksheet, by replacing placeholder text. This Google Doc will be used as a digital pass. How can I place the QR code image in the Google Docs, generated from the Google Sheets data? Ex. In the sheet, I stored Employee ID , Name , and QR Code in columns A, B, and D. I use replaceText to replace placeholder text in the Document :

Google UI App Scripts: Create a Google Doc with a legal paper size and landscape layout

佐手、 提交于 2020-06-11 05:48:18
问题 Using Google UI App Scripts how can you create a new Google Doc with a legal paper size and landscape layout? From the Document Service page I see how you can create a new document and edit a lot of the elements but not the page size or layout orientation. Am I missing it? Or is this something that is not possible? 回答1: Paper size of the document can be set using setPageHeight and setPageWidth methods of the class Body function setPageSize(){ var doc = DocumentApp.create("file name"); var

Import Google sheet data directly into R [closed]

筅森魡賤 提交于 2020-06-08 12:58:08
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . Is it possible to import a table into R directly from Google docs without authorization key? I have a sharable google sheet that I try to connect to shiny app but couldn't find a proper way. 回答1: With the package gsheet you can read in a sheet from the shareable link. Example

Trigger webhook when Google Sheet edited

我与影子孤独终老i 提交于 2020-05-26 06:26:22
问题 I made a google sheet for sharing todo list with co-workers. My hope is when that sheet is modified, send message to slack channel. Even if tried to find api related with this, I failed to suitable one. Is there a appropriate API or webhook? 回答1: There's Drive API's Push Notifications which lets you watch for changes to resources. You can also use Apps Scripts' onEdit trigger which acts more like a real-time checker. function onEdit(e){ // Set a comment on the edited cell to indicate when it

Trigger webhook when Google Sheet edited

送分小仙女□ 提交于 2020-05-26 06:24:46
问题 I made a google sheet for sharing todo list with co-workers. My hope is when that sheet is modified, send message to slack channel. Even if tried to find api related with this, I failed to suitable one. Is there a appropriate API or webhook? 回答1: There's Drive API's Push Notifications which lets you watch for changes to resources. You can also use Apps Scripts' onEdit trigger which acts more like a real-time checker. function onEdit(e){ // Set a comment on the edited cell to indicate when it

Trigger webhook when Google Sheet edited

时间秒杀一切 提交于 2020-05-26 06:24:27
问题 I made a google sheet for sharing todo list with co-workers. My hope is when that sheet is modified, send message to slack channel. Even if tried to find api related with this, I failed to suitable one. Is there a appropriate API or webhook? 回答1: There's Drive API's Push Notifications which lets you watch for changes to resources. You can also use Apps Scripts' onEdit trigger which acts more like a real-time checker. function onEdit(e){ // Set a comment on the edited cell to indicate when it

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: