2011-10-03 15 views
0

我有一個任務實施到web asp.net項目(網站)一個谷歌文檔解決方案,用word/excel等文檔進行管理。現在我閱讀了關於http://code.google.com/intl/en/apis/documents/docs/3.0/developers_guide_protocol.html#UploadingDocs上的Google文檔列表數據API v2.0。 我越來越從谷歌文檔的文件是這樣的:如何開始在asp.net中的谷歌文檔?

protected void Page_Load(object sender, EventArgs e) 
     { 
      if (!IsPostBack) 
      {        
       DocumentsService myService = new DocumentsService("exampleCo-exampleApp-1"); 
       myService.setUserCredentials("[email protected]", "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應用程序。我如何在瀏覽器中查看文件?

+3

我不明白問題是什麼。 – Amy

回答

0

feed.Entries中的每個條目都包含該文檔的URL。使用它。