http://code.google.com/apis/documents/docs/3.0/developers_guide_java.html#ListDocs
<http://code.google.com/apis/documents/docs/3.0/developers_guide_java.html#ListDocs>Your code will read something like: if (entry.getResourceId().equals("document:0Avfc...")) { Also note you should use .equals() for comparison of non-primitive types. -Vic On Tue, Feb 15, 2011 at 12:47 AM, amit bansal <[email protected]>wrote: > Hi Vic, > > I am not able to find property DocumentId in entry object. > > I wrote following lines of code. > > RequestSettings settings = new RequestSettings("Downloader", > service.Credentials); > settings.AutoPaging = true; > settings.PageSize = 100; > > DocumentsRequest request = new DocumentsRequest(settings); > Console.WriteLine("Successfully logged in"); > > Feed<Document> feed = request.GetEverything(); > > Document d = new Document(); > foreach (Document entry in feed.Entries) > { > if (entry.XXXX == > "0Avfcx-NY7yq_dDZ0R1BQcm5PRlg1czVWNzlmRnlVVWc") > { > d = entry; > continue; > } > } > > Document.DownloadType type = Document.DownloadType.xls; > > Stream stream = request.Download(d, type); > > > Here entry.XXXX is the problem. there is no DocumentId entry in entry > object. Even if i try to use resource id of my spreadsheet, it doesn't work. > > Please help. > Amit >
