TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Anton Pilyuganov
NA
2
2.4k
GoogleDocs BackUp or document copying between 2 accounts
Jun 29 2012 3:39 AM
I'm trying to copy a document from account 1 to account 2.
On account 1 it works this way
Example C# program
using
System;
using
System.Collections.Generic;
using
System.ComponentModel;
using
System.Data;
using
System.Drawing;
using
System.Linq;
using
System.Text;
using
System.Windows.Forms;
using
Google.GData.Documents;
using
Google.GData.Client;
using
Google.GData.Extensions;
namespace
Copy_document
{
public
partial
class
Form1 : Form
{
public
Form1()
{
InitializeComponent();
}
private
DocumentsService ds;
private
void
button1_Click(
object
sender, EventArgs e)
{
this.ds =
new
DocumentsService(
"doc service name"
);
this.ds.setUserCredentials(
"
[email protected]
"
,
"Password"
);
this.ds.QueryClientLoginToken();
SpreadsheetQuery query =
new
Google.GData.Documents.SpreadsheetQuery();
query.Title =
"12345"
;
query.TitleExact =
true
;
DocumentsFeed feed = this.ds.Query(query);
AtomEntry entry = feed.Entrie
s[0]
;
entry.Title.Text =
"12345BackUp"
;
var
feedUri =
new
Uri(DocumentsListQuery.documentsBaseUri);
this.ds.Insert(feedUri, entry);
}
}
}
the copy of document is created.
Please, help me to implement copying to another account.
I see the problem is we don't have any initial pasting position on account 2.
+ consider the situation if only that document is modified.
I would appreciate your help.
Reply
Answers (
0
)
picture box image to validate using C# windows application
How to Convert Byte[] to Binary