[英]Use google doc API in asp.net C# web application
I am developing a web application in C#.net. 我正在C#.net中开发Web应用程序。 I need to edit a file placed on the server in browser it self(Without downloading it on local machine) and when I save that file, the changes should be reflected in file. 我需要在浏览器中自行编辑放置在服务器上的文件(无需在本地计算机上下载),当我保存该文件时,更改应反映在文件中。 For this I want to use google API but I don't know how can I use this. 为此,我想使用Google API,但我不知道该如何使用。 I want to do like below. 我想做如下。
How can I do all this thing with google doc API? 如何使用Google Doc API进行所有操作?
Install Google Drive on your server. 在服务器上安装Google云端硬盘。
Edit the file in Google docs, let Google Drive sync it to the local hard drive. 在Google文档中编辑文件,让Google云端硬盘将其同步到本地硬盘。
It is not possible for HTTP protocol, because the basics system doesn;t support it. HTTP协议是不可能的,因为基本系统不支持它。 You can open the file but the file will be downloaded to your local machine in then it will open, you have to specify the MIME type in IIS. 您可以打开文件,但是文件将被下载到本地计算机中,然后它将打开,您必须在IIS中指定MIME类型。
You can use two ways to do a similar job done. 您可以使用两种方法来完成类似的工作。
1 By Using FTP 1通过使用FTP
2 Customized solution : Make a page put a text field and load the file (.cs) in it and with submit save it to the file back. 2定制解决方案:在页面上放置一个文本字段并在其中加载文件(.cs),然后提交,将其保存回文件中。
You can embed a google doc in Webpages. 您可以在网页中嵌入Google文档。 But the file would be accessed and saved on Google's servers and not your company server: Wordpress allows you to do it. 但是可以访问该文件并将其保存在Google的服务器上,而不是保存在公司的服务器上:Wordpress允许您执行此操作。 Potentially you can see if it possible to do it in a similar way: http://en.support.wordpress.com/google-docs/ 您可能会看到是否有可能以类似的方式进行操作: http : //en.support.wordpress.com/google-docs/
I am not sure if Google has an option of accessing docs from servers outside google's domain. 我不确定Google是否可以选择从Google域之外的服务器访问文档。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.