google-docs

How to I add anchor comments to a Google Doc file programatically

独自空忆成欢 提交于 2021-01-29 07:48:57
问题 I have to add anchor comments to a google doc file using Google App Scripts, but I'm not able to do so. I tried using anchor while using the Document.Comment.Insert method but it does not work. Can anyone please help me by letting me know how to use the anchor functionality or is there any other ways to add anchor comments with help of a program? 回答1: You can create a comment using the Google Drive API v3 instead. I haven't quite figured out the structure of an Anchor for say a Google Sheet

How to I add anchor comments to a Google Doc file programatically

折月煮酒 提交于 2021-01-29 07:31:31
问题 I have to add anchor comments to a google doc file using Google App Scripts, but I'm not able to do so. I tried using anchor while using the Document.Comment.Insert method but it does not work. Can anyone please help me by letting me know how to use the anchor functionality or is there any other ways to add anchor comments with help of a program? 回答1: You can create a comment using the Google Drive API v3 instead. I haven't quite figured out the structure of an Anchor for say a Google Sheet

How to set a border around an image in a Doc using Google Apps Script?

自作多情 提交于 2021-01-29 03:52:49
问题 I'm trying to find a way to get a border around an image in Google Docs using Google Apps Script. This is possible in the GUI of Google Docs but I can't find how to do this using the GAS. I've tried using style attributes but these don't seem to affect the image at all. (https://developers.google.com/apps-script/reference/document/text#setattributesattributes) Video of what I want to do: https://www.youtube.com/watch?v=FC2wpheln_o Any help would be welcome! 来源: https://stackoverflow.com

I need to save a copy of a google spreadsheet to a specific directory using script

≯℡__Kan透↙ 提交于 2021-01-28 20:43:38
问题 We currently have a nightly balancing process wherein we open an Excel template spreadsheet, enter the correct processing date, and then click a button, causing a VB script to fire off and create a new copy of the spreadsheet with the appropriate name (eg, "BAL 080114") in the appropriate folder and opens it, at which point the operator then closes the template, and continues work in the new copy. The folder structure is: Drive --->Ops Room ------->Procedural Sheets ----------->Night Shift --

call an image from URL in Apps Script

霸气de小男生 提交于 2021-01-27 22:56:46
问题 I programmed one that calls a Google Doc and in said Doc there is a variable called #Name# this is replaced by the name that is stored in a SpreadSheet. My question is that to that Doc I want to add a variable called # Photo # and it is replaced by the photo stored in a Drive URL and this URL is in a SpreadSheet How can I call that URL that is in Spreadsheet and be able to replace the field #photo# With the name it does well with the function body.replaceText ('#name#', name); but with the

How to add content to google doc table cell in c#

为君一笑 提交于 2021-01-27 08:00:41
问题 I'm trying to insert a 3x3 table into a google doc and then text into the table cells using c#. I came across this thread which helped me get the table added and at least get some text in one of the cells. The answer in that thread said to add 4 to the startindex of the newly created table. I did that and all of my text was just added to the 2nd cell of the first row. You can see from my code below that in the for loop I'm hoping to populate each cell with some test text. So, I'm not sure why

Service Unavailable: DOCS when copying Google Docs

家住魔仙堡 提交于 2021-01-27 07:47:52
问题 Suddenly encountered one issue where Google DOCS service fails after making some calls to copy elements. Funny thing is that it actually copies the first element, but when it goes for the second loop within the "for" it fails giving this error: Service unavailable: Documents This script used to work fine for a few months as we have it published within our company. Suddenly last week it stopped working for all the users regardless of their browser etc... It is a script linked to a Google

Copy Google Spreadsheet + Share with same users in script

≡放荡痞女 提交于 2021-01-27 05:30:19
问题 I have searched the far reaches of the internet for a couple days now, but cannot seem to find a solution to my issue. I have limited knowledge of programming, but if I can get this to work, it is going to do wonderful things. EXPLANATION: I need to make a copy of a template spreadsheet, using a script inside spreadsheet A and copy over all the permissions of the template into the copy (specifically the name and protected ranges). I am using SheetSpider. As of right now, I can create the

Copy Google Spreadsheet + Share with same users in script

邮差的信 提交于 2021-01-27 05:28:34
问题 I have searched the far reaches of the internet for a couple days now, but cannot seem to find a solution to my issue. I have limited knowledge of programming, but if I can get this to work, it is going to do wonderful things. EXPLANATION: I need to make a copy of a template spreadsheet, using a script inside spreadsheet A and copy over all the permissions of the template into the copy (specifically the name and protected ranges). I am using SheetSpider. As of right now, I can create the

Find and Replace text in entire Google Drive folder, headers, footers, google docs using a script

心已入冬 提交于 2021-01-05 07:17:27
问题 I have numerous Google Docs with a header and footer. Multiple links on our intranet to these documents exist so I don't want to make new documents. There are hundreds of documents to update. I need to update the physical address and header/footer letterhead in these documents. I need to copy the images, formatting, tables, etc in the header and footers too. I wish they were more like CSS or templates that could be changed across multiple documents at once. Multiple considerations have been