Make DataTable from Clipboard.GetObject, possible?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to make a DataTable from the Clipboard? Anyone have sample
code or project?

Thanks
Dan H.
 
Stuart,
I want to make a class that basically looks at the clipboard, and for the
standard types of clipboard objects (csv,text, etc), create a DataTable from
it. Not all formats will be supported but as many as possible. The idea is
to be able to convert the clipboard into a DataTable, and then work on the
DataTable.

I have started the class here:
http://www.theoren.com/DanH/ClipBoardDataTable.cs

Right now, it only supports the csv dataformat and work well with excel.
The work I have done so far is a port of the vb.net project found here
http://www.codeguru.com/vb/controls/vbnet_controls/datagridcontrol/article.php/c6393/

Anyone else done something like this? Any advice or other sample code to
share?

Thanks,
Dan
 
Back
Top