Uri documentUri = new Uri(entry.Content.AbsoluteUri); Stream stream = service.Query(documentUri); StreamReader streamReader = new StreamReader(stream); StreamWriter streamWriter = new StreamWriter("C:\\example.html"); string line = ""; while( (line = streamReader.ReadLine()) != null) { streamWriter.WriteLine(line); } streamReader.Close(); streamWriter.Close();
Save A Google Docs Document As A File In .NET
Posted by
Jeff Fisher
on
Tuesday, July 29, 2008
Given a DocumentEntry, save to local file "C:\example.html"
Subscribe to:
Post Comments (Atom)
7 comments:
I am using your method to download a Doc file from my Google Doc account, but the images in the Doc file went missing.
Currently use the new v1.5 .Net client, and noticed the DocumentsRequest.Download() method.
However, it request parameter of Document, so how do I pass in DocumentEntry?
Thanks!
Post a Comment