B
Bob
I am simply trying to write CSV data to the the clipboard. The code
below is not working. Any suggestions?
Dim data As New DataObject
Dim ms As New MemoryStream
Dim sw As New StreamWriter(ms)
sw.Write("Tom")
sw.Write(",")
sw.Write("Jones")
sw.Write(",")
sw.Write(100)
sw.WriteLine()
sw.Write(Chr(0))
sw.Close()
data.SetData(DataFormats.CommaSeparatedValue, ms)
Clipboard.SetDataObject(data, False)
ms.Close()
THANKS
Bob
below is not working. Any suggestions?
Dim data As New DataObject
Dim ms As New MemoryStream
Dim sw As New StreamWriter(ms)
sw.Write("Tom")
sw.Write(",")
sw.Write("Jones")
sw.Write(",")
sw.Write(100)
sw.WriteLine()
sw.Write(Chr(0))
sw.Close()
data.SetData(DataFormats.CommaSeparatedValue, ms)
Clipboard.SetDataObject(data, False)
ms.Close()
THANKS
Bob