Closed GoogleCodeExporter closed 9 years ago
Just to be safe, I updated the code to this format
queryUri = baseDomain
+ "feeds/download/documents/Export?docID="
+ (document.ResourceId.Contains(":") ?
document.ResourceId.Substring(document.ResourceId.IndexOf(":") + 1) :
document.ResourceId)
+ "&exportFormat=" + type.ToString();
Original comment by Mike.Lim...@gmail.com
on 26 May 2011 at 2:25
Attachments:
Only a suggestion/workaround: there is another version of the Download method.
Use: Stream Download(Document,string) It works fine.
Original comment by fht...@gmail.com
on 26 May 2011 at 5:59
Thanks for the suggestion.
I prefer Download(Document document, Document.DownloadType type) over
Download(Document document, string exportFormat), as we can use intellisense
for download type.
Also prefer a working DecListExporter application that newbies like me can
study and learn from.
Original comment by Mike.Lim...@gmail.com
on 26 May 2011 at 2:09
Mike,
Thanks for the patch, I committed it in rev. 1103.
Original comment by ccherub...@google.com
on 9 Jun 2011 at 11:13
Issue 411 has been merged into this issue.
Original comment by ccherub...@google.com
on 10 Jun 2011 at 9:34
ccherub,
You merged issue 411 into this one, but don't know if this issue fully
addresses 411.
One of the main things that we thought should be changed is the way the export
url is come to. In the current code, it is still being constructed out of the
resource ID. This way is not preferred, because the Document object is passed
into the Download Function as a parameter. The Document object already has the
export url in it: Document.DocumentEntry.Content.Src . We shouldn't have to
construct it from scratch.
Original comment by ed...@edwinlandy.com
on 10 Jun 2011 at 10:21
Edwin, you're right, this partially addresses issue 411.
Would you like to propose a patch to correct the way the export url is
constructed?
Original comment by ccherub...@google.com
on 10 Jun 2011 at 10:29
Original issue reported on code.google.com by
Mike.Lim...@gmail.com
on 26 May 2011 at 1:48Attachments: