google-docs-api

Using Google Spreadsheet API without having values in header row in lower case with spaces removed

一曲冷凌霜 提交于 2020-01-03 02:05:14
问题 I was wondering if there is any way around (read: hacks) using the Google Spreadsheet API that doesn't impose the restriction of having the values in the header row in lowercase with no spaces. I'm aware that I can just make use of the cell based feed but that would have an overhead of my application having to track what column number corresponds to a particular column name. Does anyone have an alternative means? (Also I noticed that the Google Spreadsheet API Docs doesn't make any mention of

edit google document remotely

两盒软妹~` 提交于 2020-01-02 07:25:31
问题 I'm trying to add a feature to my website as follows: Clicking a button appends text to a Google document. Obviously I will need to create an Apps Script in the drive. The question is how to trigger the Apps Script from my website. You can assume that I am the owner of the drive/document and so have permissions to edit it in any way I like. I have looked at these topics: Workarounds : How to edit native google documents programatcally?item How to programmatically manipulate native google doc

Documents List API Regression: Updating a document (with conversion) loses images

亡梦爱人 提交于 2020-01-01 07:38:09
问题 Something seems to have recently broken with the Google Docs conversion when using the documents list API. Updates made to existing document entries won't be converted into the Google Docs format correctly and images in the document will not appear. Steps To Reproduce I have a .docx file that has a couple lines of text, and an image. Using the documents list API, I upload the file as a NEW entry (with conversion turned ON), and it works fine. I'm able to open the converted document in Google

How to generate a pre-filled form URL for Google Form

旧城冷巷雨未停 提交于 2019-12-31 10:37:23
问题 I'm looking for a programmatic way to automate the generation of pre-filled URLs for google forms. In a recent update, Google introduced a new Forms product to Google Docs. If you open the tools menu in a spreadsheet, you'll see some new options. In the new Form Responses menu, one option is "Get pre-filled URL". This opens up a dialog containing a version of your form that you can fill out, and when you submit it, you receive a URL that can be used to open a Live Form with the data you pre

How to add Header/Footer to with Google Docs API

◇◆丶佛笑我妖孽 提交于 2019-12-31 05:45:13
问题 I want to add header and footer to an existing Google Docs file using Google Docs API. Looking at the documents.batchUpdate (link) we can insert text, replace text, add images and table etc by mentioning them in the JSON payload with objects like replaceAllText , insertText etc but I cannot find any way to insert header and footer. Question 1: How can I add header and footer? Question 2: How can I add different header/footer for the first page of document? If not possible, suggestion to use

Windows Metro Style app occur error with Google Data API Library

允我心安 提交于 2019-12-31 01:55:11
问题 OS: Windows 8 Consumer Preview IDE: Visual Studio 11 Beta I create a Blank Application(Windows Metro style). And add Google Doc API sample code. (It is below) It occur compile Error.( Cannot find type System.ComponentModel.ExpandableObjectConverter in module System.dll ) But When I create a Console Application(Windows), don't occur compile Error and Google Doc API working good. Any ideas? using System; using Google.GData.Client; using Google.GData.Documents; namespace

Programmatically get a Spreadsheet “Publish[ed] on the web”

 ̄綄美尐妖づ 提交于 2019-12-31 01:54:22
问题 For the time being I believe this is a real wall I'm hitting my head on, but let's try: Is there any way to programmatically set a spreadsheet to "Publish[ed] on the web" via GAS, or using any of the Google APIs (Google Spreadsheets, Google Docs List, etc.) and UrlFetch? The goal is to access the sheet feed anonymously. Please note that it is possible to make a sheet "public" (through the Google Docs List: it's a "sharing" option), or using GAS setAnonymousAccess() I think, but as far as I

Google Apps Script; Docs; convert selected element to HTML

爷,独闯天下 提交于 2019-12-30 11:25:07
问题 I am just starting with Google Apps Script and following the Add-on quickstart https://developers.google.com/apps-script/quickstart/docs In the quickstart you can create a simple add-on to get a selection from a document and translate it with the LanguageApp service. The example gets the underlying text using this: function getSelectedText() { var selection = DocumentApp.getActiveDocument().getSelection(); if (selection) { var text = []; var elements = selection.getSelectedElements(); for

Script to change owner of a document in Google Docs

为君一笑 提交于 2019-12-30 07:45:09
问题 New here to StackOverflow and Google Apps Script. I appreciate any assistance/guidance. The Task: I'm trying to write a Google Apps Script that will transfer ownership of all files in a specified folder to one owner. I am a super admin for a Google Apps Premier Edition account. However, I will be neither the original owner or the new owner, and the new owners cannot be super admins (and thus run scripts) for security reasons. Both the original and new owners are on the same domain. I found

Script to change owner of a document in Google Docs

我与影子孤独终老i 提交于 2019-12-30 07:45:08
问题 New here to StackOverflow and Google Apps Script. I appreciate any assistance/guidance. The Task: I'm trying to write a Google Apps Script that will transfer ownership of all files in a specified folder to one owner. I am a super admin for a Google Apps Premier Edition account. However, I will be neither the original owner or the new owner, and the new owners cannot be super admins (and thus run scripts) for security reasons. Both the original and new owners are on the same domain. I found