clipboardformat, Xml Spreadsheet

E

EP

Can anyone help me with copying spreadsheet format to the clipboard.

I have this text

<Workbook>
<Worksheet>
<Table>
<Row>
<Cell ss:Type="String">MyData</Cell>
<Cell ss:Type="String">MyData</Cell>
</Row>
</Table>
</Worksheet>
</Workbook>

I put that into a memorystream (UTF8),
then call
DataObject ob = new DataObject();
ob.SetData("XML Spreadsheet", ob);
Clipboard.SetDataObject(ob, true)

When I try to paste this into excel it complains that it can't paste the
data.

what am I doing wrong?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top