google-docs

Programmatically edit a Google doc with JavaScript

℡╲_俬逩灬. 提交于 2019-12-07 06:19:59
问题 What I'm trying to do is run some JavaScript code that will enter text into a Google doc. What I have done so far is create an iframe element on my personal web page that embeds Google Docs. What I want to do, for now, is use functions from Google's source code to input the text. When I use the Chrome inspector along with a js beautifier, I found that if I listen for a keypress event, I get brought to the following code segment: function dKa() { var a = eKa, b = TJa ? function(c) { return a

a script for google spreadsheet to provide multiple hyperlink choice for one cell

若如初见. 提交于 2019-12-07 04:54:35
问题 I have a google spreadsheet. In some cells, it has multiple names(strings) that I would like to associate with individual hyperlinks. E.g. if I have a cell such as "Charles Darwin", it's easy for me to create a hyperlink out of this name by doing something like =Hyperlink(VLOOKUP("Charles Darwin", People!$A$1:$B$738, 2, false), "Charles Darwin") (note that I have a "People" sheet from which I grab the hyperlink) But if I happen to have multiple entries in that cell, say ";" or newline

How to disable pop-out option in pdf viewer with google doc iframe?

强颜欢笑 提交于 2019-12-06 23:15:54
问题 I am using following code to display pdf using google with iframe.. It's working fine. But I want to disable "pop-out" option (which on click opening my pdf in new tab with google docs) shown on right upper corner beside zoomin option on my webpage. Is it possible? Currently I am using following code - <iframe src="http://docs.google.com/gview?url=http://example.com/files/myfile.pdf&embedded=true" style="width:600px; height:500px;" frameborder="0"> 回答1: Run this javascript (sample with jQuery

Google docs viewer url parameters

天涯浪子 提交于 2019-12-06 20:29:21
问题 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? 回答1: 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

How to run custom function by hovering or clicking on cell in google spreadsheet?

自古美人都是妖i 提交于 2019-12-06 19:37:23
I need help to make a table which will have a cells as product thumbnails and by hovering or clicking on this small image, I want to show the pop up with big image of product. ( Right now it works as hyperlink, but it is not enough ) I know we have a few ways how to run function right now: from a custom spreadsheet function from a trigger (from spreadsheet like on open, on edit or on form submit, or Time driven) from a custom menu (which must be created by e.g. on open) from a custom user interface (which must be created by e.g. on open) from a drawing or chart from the script editor Is there

Merge google docs document thats been modified by other client. (google drive sdk)

梦想的初衷 提交于 2019-12-06 16:48:00
Whats the preferred or best procedure to merge a google docs document, thats already been modified by another client through the Google Drive SDK? In my case there will only be text-changes and no formatting differences. Unfortunately, you will have to handle this conflict yourself. The API does help you, by providing an ETag, which the server uses test whether the file you are updating has been changed in the Google Drive. If it has been changed, the request will fail by default. 来源: https://stackoverflow.com/questions/11309172/merge-google-docs-document-thats-been-modified-by-other-client

Bold conditional formatting script for Google Spreadsheets

余生长醉 提交于 2019-12-06 16:19:29
问题 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! 回答1: To start, from your spreadsheet, open "Tools / Script Editor...". When the dialog opens, choose to "Create Script For...

<div> tags inside <div> using importXML Xpath query, in Google Spreadsheet

為{幸葍}努か 提交于 2019-12-06 14:54:28
问题 I'm using Xpath in Google docs to get the text inside <div> . I want to save the text inside <div id="job_description"> in one cell of Google doc spreadsheet, but it shows each <div> in separate cell. <div id="job_description"> <div> <strong> Basic Purpose: </strong> <br></br> </div> <div> Work closely with developers, product owners and Q… <br></br> </div> <div> The Test Analyst is accountable for the developmen… <br></br> </div> <div> <strong> Duties and Responsibilities: </strong> </div>

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

纵然是瞬间 提交于 2019-12-06 14:42:46
问题 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()

Filter rows by date (A column) and write sum (C column) to field in another sheet

白昼怎懂夜的黑 提交于 2019-12-06 13:45:15
I have two sheets in Google Spreadsheet document. The first one has columns Month, Income, Expense and Profit (A,B,C,D respectively) and in each row expense value should be calculated based from filter (I think) from another sheet called Expenses. The Expenses sheet contains columns Date, Name and Price. So, what I need is to write formula to filter only expenses for specific month, to sum all prices in those rows and to write that value to C column (row for that month) in first sheet. You can see this example and please help me out to solve this. This is a formula that can be filled down (I