N
Nick
Hi there,
I'm trying to paste a load of RTF data into an Excel range but the
pastespecial method always fails,
My.Computer.Clipboard.SetData(System.Windows.Forms.DataFormats.Rtf,
iContent)
Dim pObjRange As Object = pObjWorksheet.Range("A1")
pObjRange.Select()
Call pObjWorksheet.PasteSpecial(System.Windows.Forms.DataFormats.Rtf)
iContent being the RTF data which has come straight from an rtf file and
stored in a string. I know the data is fine as I'm using the same data for
other purposes, only problem is, Excel doesn't seem to want it and gives me
no reason why the pastespecial method failed.
Any ideas what I'm doing wrong?
Nick.
I'm trying to paste a load of RTF data into an Excel range but the
pastespecial method always fails,
My.Computer.Clipboard.SetData(System.Windows.Forms.DataFormats.Rtf,
iContent)
Dim pObjRange As Object = pObjWorksheet.Range("A1")
pObjRange.Select()
Call pObjWorksheet.PasteSpecial(System.Windows.Forms.DataFormats.Rtf)
iContent being the RTF data which has come straight from an rtf file and
stored in a string. I know the data is fine as I'm using the same data for
other purposes, only problem is, Excel doesn't seem to want it and gives me
no reason why the pastespecial method failed.
Any ideas what I'm doing wrong?
Nick.