Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. Dim documentUri As Uri = New Uri(feed.Entries(0).Content.AbsoluteUri + "&exportFormat=docx&format=docx")
  2. Dim stream As Stream = service.Query(documentUri)
  3. Dim streamReader As StreamReader = New StreamReader(stream)
  4. Dim streamWriter As StreamWriter = New StreamWriter("C:\download.docx")
  5. Dim line As String = streamReader.ReadLine()
  6. While (line <> Nothing)
  7. streamWriter.WriteLine(line)
  8. line = streamReader.ReadLine()
  9. End While
  10. streamReader.Close()
  11. streamWriter.Flush()
  12. streamWriter.Close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement