Place Image File into the ClipBoard (1 Viewer)

ions

Access User
Local time
Today, 03:46
Joined
May 23, 2004
Messages
785
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
 

Simon_MT

Registered User.
Local time
Today, 11:46
Joined
Feb 26, 2007
Messages
2,177
Why.

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

Simon
 

ions

Access User
Local time
Today, 03:46
Joined
May 23, 2004
Messages
785
Simon,

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

Thank you.
 

Users who are viewing this thread

Top Bottom