如何从asp.net中的google docs开始

本文关键字:google docs 开始 中的 net asp | 更新日期: 2023-09-27 18:10:28

我有一个任务,实现到web asp.net项目(网站)的谷歌文档解决方案管理与word/excel等文档。现在我在http://code.google.com/intl/en/apis/documents/docs/3.0/developers_guide_protocol.html#UploadingDocs上阅读了关于Google Documents List Data API v2.0的内容。我像这样从谷歌文档中获取文件:

protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack) 
            {                              
                DocumentsService myService = new DocumentsService("exampleCo-exampleApp-1");
                myService.setUserCredentials("your_email_here@gmail.com", "test");
                DocumentsListQuery query = new DocumentsListQuery();
                DocumentsFeed feed = myService.Query(query);
                Console.WriteLine("Your docs: ");
                foreach (DocumentEntry entry in feed.Entries)
                {
                    Label1.Text = entry.Title.Text;
                }                                                   
            }

我理解谷歌文档像一些word应用程序在浏览器中工作。我怎么能在浏览器中查看这样的文件??

如何从asp.net中的google docs开始

提要中的每个条目。Entries包含文档的URL。使用。