Screen Copy & Office clipboard error

Screen Copy & Office clipboard error

Post by T2xpdmllc » Tue, 11 May 2004 16:21:03

Hi everybody

I built an application that capture a screen copy and, by the way, paste it to the clipboard. This works fine and the image goes well into file and the clipboard but I also get a clipboad message telling something like "Element not added, format is not managed by the office clipboard". Why ?

SelectObject(hdcCompatible, hbmscreen
BitBlt(hdcCompatible, 0, 0, width, height, hdcScreen, p0.X, p0.Y, SRCCOPY
Dim hardcop As Image = Image.FromHbitmap(hbmscreen
Dim data As New DataObject(DataFormats.Bitmap, Bitmap.FromHbitmap(hbmscreen)
Clipboard.SetDataObject(Data, True) ' Problem appears her

Thanks so much for any answer.