google-docs

Google docs viewer url parameters

限于喜欢 提交于 2019-12-05 00:40:59
Is there any sort of documentation on exactly what parameters you can put in the url of Google viewer? Originally, I thought it was just url,embedded,chrome, but I've recently come accross other funny ones like a,pagenumber, and a few others for authentication etc. Any clues? One I know is "chrome" If you've got https://docs.google.com/viewer?........;chrome=true then you see a fairly heavy UI version of that doc, however with "chrome=false" you get a compact version. But indeed, I'd like a complete list myself! You can pass q=whatever to pass a search query to the viewer. I'm also on a quest

Bold conditional formatting script for Google Spreadsheets

假如想象 提交于 2019-12-04 22:05:25
What I want to do is essentially what this user wanted to do here : I need a script that formats the cells in column A bold, but only the cells that contain the word 'Hello'. However I have no knowledge of Google Apps scripts at all, and I need an answer put in much simpler terms than what I could find there or anywhere else. Any help is appreciated; thank you! To start, from your spreadsheet, open "Tools / Script Editor...". When the dialog opens, choose to "Create Script For... Spreadsheet". You will end up with a sample script - we're going to edit it to do what you want. Change the

How to upload documents with new python-gdata (2.0.16)?

这一生的挚爱 提交于 2019-12-04 19:23:48
With python-gdata 2.0.14, I used the following pieces of code to create and upload documents: # To create a document import gdata.docs import gdata.docs.client from gdata.data import MediaSource gdClient = gdata.docs.client.DocsClient(source="my-app") gdClient.ssl = True gdClient.ClientLogin("login", "pa$$word", gdClient.source) ms = MediaSource(file_path="temp.html", content_type="text/html") entry = gdClient.Upload(ms, "document title") print "uploaded, url is", entry.GetAlternateLink().href and # To update a document entry.title.text = "updated title" entry = gdClient.Update(entry, media

Google Apps Script To Help Error When Embedding Google Spreadsheet in a Google Site?

烈酒焚心 提交于 2019-12-04 17:06:39
Spreadsheet A is the master data source for the group that welcomes Newcomers to our little town. It has a ton of very sensitive data in it and cannot be public, not even a little bit. (We're talking about names and birth dates of kids and where they go to school . . . keeping Spreadsheet A secure is mission critical.) So, Spreadsheet B uses an importRange and a query to pull the necessary columns from Spreadsheet A to populate our "Member Directory". Then, I embedded Spreadsheet B in the group's Google Site. (Feel free to check out the site if you like at www.SewickleyNewcomers.com ) And it

Is it possible to get or set the position of tab-stops (left, center or right ones)?

落爺英雄遲暮 提交于 2019-12-04 16:52:11
(with Google Apps Script Documents) I can't get positions of the left, center or right tab-stop programmatically (with apps script). Is this possible to set or get positions like indents of paragraph (getIndentFirstLine()) ? 来源: https://stackoverflow.com/questions/49836768/is-it-possible-to-get-or-set-the-position-of-tab-stops-left-center-or-right-on

Importing javascript table into Google Docs spreadsheet

守給你的承諾、 提交于 2019-12-04 16:35:06
I am attempting to import the leaderboard at pgatour.com/leaderboard.html or golf.com/leaderboard (sorry, can't post more than 2 links since I have <10 reputation). Based on my research , it seems that the IMPORTHTML & IMPORTXML functions are unable to retrieve the data because the table doesn't actually exist at the time the import function runs, as the table/data is loaded via javascript after the function reads the page's html/xml. Example: =IMPORTXML("http://www.golf.com/leaderboard","//*[@id='leaderboardPositionTable']") =IMPORTHTML("http://www.pgatour.com/leaderboard.html","table",1) Is

Uploading files to Google docs programmatically

自作多情 提交于 2019-12-04 15:52:35
问题 I have many many pdf files around 50GB in my Ebooks folder. Now i want to upload them in Google docs like Rsync of Linux. Is it possible to have the script in php or python which uploads all pdf files in Ebooks folder and subfolders to Google docs. Now the problem is i need to restart computer many times and i want that script should start from where it was left with previous file so that i don't need to manually make selection of files. is it possible 回答1: You'd use the Google Documents API

Any way to share google docs programmatically?

故事扮演 提交于 2019-12-04 15:45:23
I have a program that will get data from a fusion table, put it in a google doc(using a template I made), make it a pdf and then display a link to it(to the pdf). My problem is that it works fine for my account but if anyone else tries to click on it they keep getting the "404 Not Found" error. My guess is that the error shows up because I am the only one allowed to view the file. My question is: Is there a way to programmatically share the file with everyone in the organization or is there another way to do it? You can do it using DocsList.addViewers(viewersEmails[]) here is an example that

Use Google Apps Script to apply heading style to all instances of a word

我的未来我决定 提交于 2019-12-04 14:28:36
I am using Google App Scripts in a Google Doc, how do you write a function to find all instances of a word and apply a heading style to it: For example, I want every instance of "Dogs"... Cats Dogs Fish and style "dogs" with "Heading 2" so it looks like: Cats Dogs Fish Using Find in App Scripts on Sheets is everywhere online, but there are not many examples of using App Scripts in Docs. Sheets does not have the option to reformat text as Headings, so there are no examples of it. The methods to use are: findText , applied to document Body. It finds the first match; subsequent matches are found

Capture keypress in Javascript (Google Docs)

自闭症网瘾萝莉.ら 提交于 2019-12-04 14:11:31
I'm trying to write a little greasemonkey script/bookmarklet/what have you for Google Docs. The functionality I'd like to add needs a keypress/keyup/keydown event handler (one of those three). Unfortunately, Javascript isn't my forté, and I can't seem to capture (?) a keypress event to while in the edit pane. As a last resort, I've tried the following: javascript:(function(){ els = document.getElementsByTagName("*"); for(i=0;i<els.length;i++){ els[i].onkeypress=function(){alert("hello!");}; els[i].onkeyup=function(){alert("hello2!");}; els[i].onkeydown=function(){alert("hello3!");}; } })();