469,602 Members | 1,713 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,602 developers. It's quick & easy.

Large amount of data on the clipboard

Hi all,

I'm using the following code to copy data from XL to the clipboard to be
later usied in a datatable
range = objSheet.get_Range("A22", "aa100");
range.Copy(Missing.Value).ToString();
xlcopydata = Clipboard.GetData(DataFormats.Text).ToString();
Clipboard.Clear();
But when I issue a excelapplication quite I get an dialog saying that I have
large amounts of data on the clipboard, do I want to keep it etc etc
How do I prohibit this message from apearing and making sure that onece the
data is copied to my string variable that the clipboard is cleared

Thanks
Robert
Jul 11 '06 #1
1 3578

Robert Bravery wrote:
Hi all,

I'm using the following code to copy data from XL to the clipboard to be
later usied in a datatable
range = objSheet.get_Range("A22", "aa100");
range.Copy(Missing.Value).ToString();
xlcopydata = Clipboard.GetData(DataFormats.Text).ToString();
Clipboard.Clear();
But when I issue a excelapplication quite I get an dialog saying that I have
large amounts of data on the clipboard, do I want to keep it etc etc
How do I prohibit this message from apearing and making sure that onece the
data is copied to my string variable that the clipboard is cleared
First thing I would do would be to use a clipboard viewer to see what
is on the clipboard after the above code has run, but before trying to
close Excel. If there is indeed nothing on the clipboard, I would go to
an Excel newsgroup and see if anyone there knows what is afoot. If
there is still stuff on the clipboard, I would check I was using
Clipboard.Clear correctly.

--
Larry Lard
Replies to group please
When starting a new topic, please mention which version of VB/C# you
are using

Jul 12 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Robert May | last post: by
1 post views Thread by keith | last post: by
7 posts views Thread by =?Utf-8?B?TW9iaWxlTWFu?= | last post: by
16 posts views Thread by Jack | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.