G
Guest
I'm new to using the clipboard so forgive me if this is a very dumb question.
All the documentation recommends puting as many formats in to the clipboard
as you can so that other applications will be able to paste what was copied.
I have code like this in a copy method:
DataFormats.Format fmtCdsCell = DataFormats.GetFormat ("MyDataFormat");
Build Format...
Clipboard.SetData(fmtCdsCell.Name, object);
Build a plain text representation...
Clipboard.SetText(strText);
The problem with this code is that the first representation is not available
when it is retrieved later, only the text representation is. If I comment
out the second Set call the first format is available. If you are supposed
to add mutliple fomats, which I really need to do, how do you do it without
overwriting the previous data you put on the clipboard?
All the documentation recommends puting as many formats in to the clipboard
as you can so that other applications will be able to paste what was copied.
I have code like this in a copy method:
DataFormats.Format fmtCdsCell = DataFormats.GetFormat ("MyDataFormat");
Build Format...
Clipboard.SetData(fmtCdsCell.Name, object);
Build a plain text representation...
Clipboard.SetText(strText);
The problem with this code is that the first representation is not available
when it is retrieved later, only the text representation is. If I comment
out the second Set call the first format is available. If you are supposed
to add mutliple fomats, which I really need to do, how do you do it without
overwriting the previous data you put on the clipboard?