google-docs

How do I export the revision history of a gdoc to git?

拟墨画扇 提交于 2020-12-27 08:08:40
问题 I have a spreadsheet in google docs that I'd want to integrate in a git workflow (and push to github). Are there any tools (or even libraries that are gdoc version aware) that do, or help me do, that? I have some old ruby hacks lying around based on the google_spreadsheet gem that reads and writes current versions of a csv gdoc, but nothing which extracts revision history. 回答1: gdoc is not set up for exporting revision history source. Google drive does have an API to access all the revisions

How do I export the revision history of a gdoc to git?

我的未来我决定 提交于 2020-12-27 08:06:48
问题 I have a spreadsheet in google docs that I'd want to integrate in a git workflow (and push to github). Are there any tools (or even libraries that are gdoc version aware) that do, or help me do, that? I have some old ruby hacks lying around based on the google_spreadsheet gem that reads and writes current versions of a csv gdoc, but nothing which extracts revision history. 回答1: gdoc is not set up for exporting revision history source. Google drive does have an API to access all the revisions

How to convert office files (docx, xlsx) to google format in c#

夙愿已清 提交于 2020-12-16 07:36:49
问题 Anyone share the way to convert docx, xlsx, pptx to google format in programmatic. I am uploading through Google Drive API and sharing to users using c#. every time creating a duplicate document when someone edit the file. I want to convert the file while upload. So i can share the converted file to everyone. I am using Google Drive v3 api. Download Code: private static System.IO.MemoryStream DownloadFile(DriveService service, string fileID) { var request = service.Files.Get(fileID); var

How to convert office files (docx, xlsx) to google format in c#

江枫思渺然 提交于 2020-12-16 07:36:01
问题 Anyone share the way to convert docx, xlsx, pptx to google format in programmatic. I am uploading through Google Drive API and sharing to users using c#. every time creating a duplicate document when someone edit the file. I want to convert the file while upload. So i can share the converted file to everyone. I am using Google Drive v3 api. Download Code: private static System.IO.MemoryStream DownloadFile(DriveService service, string fileID) { var request = service.Files.Get(fileID); var

How to convert office files (docx, xlsx) to google format in c#

二次信任 提交于 2020-12-16 07:34:35
问题 Anyone share the way to convert docx, xlsx, pptx to google format in programmatic. I am uploading through Google Drive API and sharing to users using c#. every time creating a duplicate document when someone edit the file. I want to convert the file while upload. So i can share the converted file to everyone. I am using Google Drive v3 api. Download Code: private static System.IO.MemoryStream DownloadFile(DriveService service, string fileID) { var request = service.Files.Get(fileID); var

How to fix “Service Documents failed while accessing document” while inserting a lot of data?

独自空忆成欢 提交于 2020-12-13 03:14:27
问题 This is a follow-up question derivated from How to solve error when adding big number of tables With the code below, I get the following message when, for 500 tables. BUt it works fine for 200 for example. Exception: Service Documents failed while accessing document with id The error happens on line 22, inside de if body = DocumentApp.getActiveDocument().getBody(); You also have the table template id to try, but here is an image Image Table Template function RequirementTemplate_Copy() { var

Converting a google doc to a pdf results in blank pdf, google scripts

孤者浪人 提交于 2020-12-12 03:47:44
问题 Here is my code to create a google doc paste some information in (eventually from a spreadsheet), convert it to a pdf and email it to myself. Unfortunately, while the document in drive has the 'This document was created by Google Apps Script.' comment in it, The pdf in the email does not. It has the right title but the content of the page is lost. I have tried several examples on stack overflow and have not got one so far to work. var ss = SpreadsheetApp.getActive(); function onOpen(){ var ui

How to solve error when adding big number of tables

笑着哭i 提交于 2020-12-07 13:35:44
问题 I have this Google Script where I am creating a document using a template table that lives in another document. The new document will have a number of small tables (like cards) in it. The code bellow works fine for 100, 200 tables and it finishes in less than 10 seconds. But it fails for more than 500 tables. There is no error message in the Executions window. I have tried the saveAndClose() function (commented out) but the error continues and it just takes longer to run. I ran out of ideas

How to solve error when adding big number of tables

你说的曾经没有我的故事 提交于 2020-12-07 13:30:26
问题 I have this Google Script where I am creating a document using a template table that lives in another document. The new document will have a number of small tables (like cards) in it. The code bellow works fine for 100, 200 tables and it finishes in less than 10 seconds. But it fails for more than 500 tables. There is no error message in the Executions window. I have tried the saveAndClose() function (commented out) but the error continues and it just takes longer to run. I ran out of ideas

How to solve error when adding big number of tables

北城余情 提交于 2020-12-07 13:25:46
问题 I have this Google Script where I am creating a document using a template table that lives in another document. The new document will have a number of small tables (like cards) in it. The code bellow works fine for 100, 200 tables and it finishes in less than 10 seconds. But it fails for more than 500 tables. There is no error message in the Executions window. I have tried the saveAndClose() function (commented out) but the error continues and it just takes longer to run. I ran out of ideas