clipboardformat, Xml Spreadsheet

  • Thread starter Thread starter EP
  • Start date Start date
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?
 
Back
Top