Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/30.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 获取文档/电子表格内容的Google API_C#_Asp.net_Google Api - Fatal编程技术网

C# 获取文档/电子表格内容的Google API

C# 获取文档/电子表格内容的Google API,c#,asp.net,google-api,C#,Asp.net,Google Api,我想在我自己的页面上显示谷歌文档的内容 我可以使用 如何在页面中显示文档内容?除非DocumentEntry类中有返回文档内容的属性,否则我认为没有办法。他们似乎没有通过API公开这一点。您可以通过以下代码获得内容 string content = string.Empty; string ACLS=string.Empty; foreach (DocumentEntry entry in feed.Entries) { if (entry.IsDocume

我想在我自己的页面上显示谷歌文档的内容

我可以使用


如何在页面中显示文档内容?

除非DocumentEntry类中有返回文档内容的属性,否则我认为没有办法。他们似乎没有通过API公开这一点。

您可以通过以下代码获得内容

 string content = string.Empty;
    string ACLS=string.Empty;
    foreach (DocumentEntry entry in feed.Entries)
    {

    if (entry.IsDocument)
    {
    var stream = client.Query(new Uri(entry.Content.Src.ToString()));
    var reader = new StreamReader(stream);
    content = reader.ReadToEnd();
    }
    }

如何在我的应用程序plz中为“DocumentsService”添加dll或任何内容?如何在我的应用程序plz中为“DocumentsService”添加dll或任何内容??
 string content = string.Empty;
    string ACLS=string.Empty;
    foreach (DocumentEntry entry in feed.Entries)
    {

    if (entry.IsDocument)
    {
    var stream = client.Query(new Uri(entry.Content.Src.ToString()));
    var reader = new StreamReader(stream);
    content = reader.ReadToEnd();
    }
    }