I'm trying to test the format of the data in the clip board using this code, the error message follows:
If Clipboard.GetDataObject.GetData(DataFormats.Text) Then
Me.Editor.Paste()
Else
MsgBox("no text to paste")
End If
An unhandled exception of type 'System.InvalidCastException' occurred in microsoft.visualbasic.dll
Additional information: Cast from string "<title> </title>
<meta http-e" to type 'Boolean' is not valid.
Please help!!!
If Clipboard.GetDataObject.GetData(DataFormats.Text) Then
Me.Editor.Paste()
Else
MsgBox("no text to paste")
End If
An unhandled exception of type 'System.InvalidCastException' occurred in microsoft.visualbasic.dll
Additional information: Cast from string "<title> </title>
<meta http-e" to type 'Boolean' is not valid.
Please help!!!