Place Image File into the ClipBoard

ions

Access User
Local time
Yesterday, 16:33
Joined
May 23, 2004
Messages
823
Hello Access Expert,

I would like to place an image file located at e.g. "C:\MyImages\image.png" into the clipboard. I have not been able to figure out how to do this. I have been able to place Text into the Clipboard using the DataObject late binding sub below.

Thank you

Code:
Public Sub PutInClipBoard(strString As String)

    Const DATAOBJECT_BINDING As String = "new:{1C3B4210-F441-11CE-B9EA-00AA006B1A69}"
 
    With CreateObject(DATAOBJECT_BINDING)
        .SetText strString
        .PutInClipBoard
    End With

End Sub
 
Why.

The image is perfectly happy being outside the database and then referential coding to render the image.

Simon
 
Simon,

I would like the image in the clipboard. I have a good reason for it.

Thank you.
 

Users who are viewing this thread

Back
Top Bottom