google-docs

Use google docs in asp.net application

╄→尐↘猪︶ㄣ 提交于 2019-12-28 18:14:09
问题 How can I use GOOGLE DOCS in my project which I am doing using asp.net with C# as code behind. Basically I need to display some pdf, doc,dox,excel documents in a read only form in the browser. Thanks in advance 回答1: Google docs has an API for that. The Google Documents List Data API allows client applications to programmatically access and manipulate user data stored with Google Documents. Check it's documentation, it has examples and everything you would need to develop something based on

How to creat a URL from google drive that wiil contain the file name?

独自空忆成欢 提交于 2019-12-25 18:47:24
问题 I need to create Hyperlinks to list of files that are on Google drive(8000 files...). in order to produce the list that will be the hyperlinks at GIS, the URL have to contain the file name I need the URL will be https://drive.google.com/MyDomain/MyDirectorey/filename.pdf Is it possible ? and if so how to ? 回答1: Not possible. Has never been a drive feature. At most you could write a webserver that receives such urls (starting with your url not google's) and redirect to the appropiate file. 来源:

Google Maps Xpath using Google Spreadsheet IMPORTXML

拈花ヽ惹草 提交于 2019-12-25 10:31:48
问题 I am trying to use Pull data from google maps results using IMPORTXML function in google spreadsheet but I am getting error #N/A =importxml(http://maps.google.com/maps?q=cosmetic+surgeon+NEAR+New+York%2C+NY%2C+United+States&output=classic&dg=ntvb,"//div[@class='name lname']) or =importxml(http://maps.google.com/maps?q=cosmetic+surgeon+NEAR+New+York%2C+NY%2C+United+States&output=classic&dg=ntvb,//SPAN[@class='pp-place-title']) but nothing is working.. Any thoughts??? Thanks 回答1: If you're

Lookup Return Top Row

淺唱寂寞╮ 提交于 2019-12-25 09:30:52
问题 I am trying to do a Lookup in Google Docs that returns the top row of where an item was found. I have attached an example image of my data. The data is in F2:Q25 and I want to supply a number and have it return the corresponding team. For example, if I enter in 1 , I want it to return Team1 . If I enter 79 , I want it to return Team7 (the top row of where the result was found). Is this possible? 回答1: Use the principle of mathematical exclusion (find the smallest by adding an astronomical

Google App Script Page break at cursor?

£可爱£侵袭症+ 提交于 2019-12-25 05:35:11
问题 I have a button in my sidebar of which's purpose is to insert a page break where the cursor is. I tried scripting it to just insert a page break (not at the cursor but just in the body) and it works fine. However, I can't seem to get it to work at the cursor: function pageBreak() { var cursor = DocumentApp.getActiveDocument().getOffset(); insertPageBreak(cursor); } How can I accomplish this? 回答1: You need to know the element type at the cursor position. Not all element types allow a page

Referencing cells in tables on a Google Doc

不羁的心 提交于 2019-12-25 01:34:41
问题 I'm trying to automatically format a table in a Google Doc cell by cell. Once I have a table stored in the variable table , I try to use getCell to reference the cell in the top left of this table, but it doesn't return the cell I'm after. I noticed that in the Google Scripts reference, they note that to point to a cell, the correct usage is getCell(rowIndex, cellIndex) . What does cellIndex refer to in this case, and does it relate to some sort of columnIndex ? Any pointers on this would be

Image duplicates itself when using appendParagraph in Google Script

久未见 提交于 2019-12-25 01:27:42
问题 I wrote a script to add an image from my Google Drive and some custom text to a Google Doc. (I got the image insertion code from here). The resulting document is created ok, but my image is added twice for some reason ... function myFunction(e) { var doc = DocumentApp.create('fileTest'); var body = doc.getBody(); var matchedFiles = DriveApp.getFilesByName('logo.png'); if (matchedFiles.hasNext()) { var image = matchedFiles.next().getBlob(); var positionedImage = body.getParagraphs()[0]

Convert HTML with bold style to Google Doc using Google Script

我是研究僧i 提交于 2019-12-25 00:49:03
问题 I'm trying to convert HTML codes into Google Doc using Google Apps Script but I'm losing the bold CSS styles. Everytime I get the converted Google Doc file, it's converting the text perfectly but missing bold styles from every text. Here's my code, function html_to_doc() { var html = '<meta content="text/html; charset=UTF-8" http-equiv="content-type"><style type="text/css">ol{margin:0;padding:0}table td,table th{padding:0}.c9{-webkit-text-decoration-skip:none;color:#0000ff;font-weight:700

DocumentApp.openById() fails with “Service unavailable”

﹥>﹥吖頭↗ 提交于 2019-12-24 19:42:41
问题 I am trying to read the contents of a spreadsheet which contains some folderId , fileName and targetFile and then based on the data entered in the spreadsheet. I am finding the latest fileId in the drive for the same fileName as multiple files with the same name are getting added into the folder daily (this is done by the function mostRecentFiIeInFolder ) and then I am trying to copy the contents of the latest file with ID dociIdSource into a different file with ID docIdTarget (which is done

Android crash report doesn't send data to google docs

Deadly 提交于 2019-12-24 17:50:23
问题 I'm trying to use the android crash report in my android project. I have added the jar and I have code like this in my src directory. import android.app.Application; import org.acra.*; import org.acra.annotation.*; @ReportsCrashes(formKey = "0xxxxxxxxxxxxxxxxxxxS2JONHc") public class CrashLog extends Application { @Override public void onCreate() { // The following line triggers the initialization of ACRA ACRA.init(this); super.onCreate(); } } My google spreadsheet url look like this: https:/