Questions tagged [google-docs]

Questions related to interacting with Google word processing Documents programmatically. Usage questions about the web application should be posted at Web Applications Stack Exchange.

Google Docs is a cloud-based application and service for creating and collaborating on word processing documents. The service supports an internal API for Google Apps Script as well as an External API.

Usage questions about the web application should be posted at Web Applications Stack Exchange or the Google Drive Help Center instead of here.

Note: Google has historically used the brand "Google Docs" to encompass a suite of products, but since conforming to that would introduce ambiguity here, the tag is specifically for word processing documents while refers to the suite.

3539 questions
1
vote
0 answers

Google Docs use normal divs on Chrome and iframe on Firefox for presentation.Can you explain why?

This is especially important for text editing. Using iframes for text editing (lets say you will develop a rich text editor) looks like a common and reliable technique. Text editing in Google Docs presentation differs from Chrome to Firefox. They…
mdikici
  • 1,374
  • 2
  • 13
  • 20
1
vote
1 answer

Do not allow a user to enter the word if number of occurrences of the word in a column exceeds five

How to prevent a user entering a word if the number of occurrences of the word in a column already exceeds five? In other words, how to put a limit on word occurrences?
N S
  • 13
  • 3
1
vote
0 answers

google doc script, capitalize sentences without removing other attributes

i want to create a script to capitalize sentences in a google doc, but without changing existing attributes in certain words. for example, in a google doc, there would be several paragraphs, with each paragraph having several sentences. in such…
Luke V
  • 351
  • 1
  • 2
  • 7
1
vote
0 answers

Import or Open gsheet file in Google Docs or Google Sheets

I have a local file named timeline.gsheet , which is apparently generated by Google Docs. How do I import, edit, and save this file in Google Docs? From Google Sheets: File -> Import -> Upload Import error timeline.gsheet Sorry, that file type…
here
  • 2,790
  • 25
  • 30
1
vote
1 answer

Google doc adding bullets or number lists to already existing lines

I have few lines in my google doc such as example a new one a new bie a pie all others Now when I select all lines and apply bullet or numbering to the list above, all elements separated by new line will not be get bullets or numbers, only the…
1
vote
1 answer

Why can't .getUrl work in this code?

I'm new to Google Script and decided to try out the documentation code here located at the bottom. The code is located below: function createAndSendDocument() { // Create a new Google Doc named 'Hello, world!' var doc =…
user5404864
1
vote
1 answer

Google Apps Script - appendParagraph with image

I have an add-on that copies content from "template" Docs files into the current open Doc document. When inline images are used in the body of the source Doc, the text is copied but the UI shows a "reconnecting" message. A greyed out image…
1
vote
1 answer

Change Company Logo in All Google Docs

I look after our organisations document management system. All documents have a header section with a table. The first column of the table contains the company logo. The company is about to change its logo. There are @ 400 documents. I need to…
Metric Rat
  • 196
  • 1
  • 3
  • 12
1
vote
2 answers

How do you change formatting within a google doc for multiple occurrences using findText()?

I am trying to find text within a google doc and replace with a subscript notation - replace "a3" with a3 but with the 3 now formatted as a subscript. based on the answer here I wrote some code that is working but only replaces the 1st instance of…
aShumays
  • 69
  • 12
1
vote
2 answers

"Unresolved Sheet Name" errors randomly shown across my cells

This started happening to me today, almost randomly my functions show "Unresolved Sheet Name". I have to go into the function, as if I was editing it, and just hit Enter and it works like normal. The issues is I have thousands of functions across…
Douglas Gaskell
  • 9,017
  • 9
  • 71
  • 128
1
vote
1 answer

Google Apps Script: find all occurrences and set style

I'm having trouble figuring out how find/next works in Google Apps Script. In the example here I'm trying to superscript the numbers in a list of authors. But my loop doesn't exit, presumably because it just keeps selecting the first item over and…
JoshDG
  • 3,871
  • 10
  • 51
  • 85
1
vote
0 answers

How do I obtain the last mod time for a SHEET in a Google workBOOK?

I have a bunch of workbooks that have dozens... up to 100... sheets in them, and we do an import process, loading one sheet after the other, on these workbooks that tends to get throttled when we collate our entire body of data. In other words, we…
1
vote
0 answers

Appending a selected Range from Google Spreadsheet to a CSV file on Google Drive

I am trying to modify the following script, which saves a selected range to a new CSV file on Google drive. https://developers.google.com/apps-script/articles/docslist_tutorial?hl=en Please see: Section 3: Saving a selected Range to a CSV file I…
1
vote
1 answer

Android WebView - Redirect issue using Google Docs to open PDF

I have a strange issue that only seems to be happening on a few physical devices (Nexus 4, Nexus 7), all running the latest Android OS. I cannot reproduce it on my older LG test phone, nor can I reproduce it in any Genymotion simulator I'm using;…
svguerin3
  • 2,433
  • 3
  • 29
  • 53
1
vote
1 answer

Same message repeating 3 times

I have code below that takes the first column and prints it in a google doc based on the date. Unfortunately, this repeats and prints the row three times. function saveAsDOC() { var fileName = "Announcements Test File"; var doc =…
tda
  • 241
  • 1
  • 4
  • 16
1 2 3
99
100