D
dennis g
Guest
I have searched here and the 'Net for help on this but can't find anything that deals exactly with my problem. I have a database with a linked image on it. I want to create a word document through mail merge that places the image on the word document along with some of the data from the table. Because it is not an imbedded object, I cannot use the acCopy copy command. I am working with an image control. I have the merge working great except for the image copy. I can paste it once I get it into the clipboard with no problem. I have been trying to send the image to MS Photo Editor and use it to load the image into the clipboard, but I having great troubles with the sendkey part. Access keeps sending the key strokes to itself, not to PhotoEditor. Here is the code I am having trouble with. If any one has a suggestion I am ready to try anything....
pic1 = Me.image
RetVal = Shell("c:\Program Files\Common Files\Microsoft Shared\photoed\photoed.exe " & pic1, 3)
AppActivate RetVal, 0
SendKeys "+(^C)", True
SendKeys "+{f4}", True
pic1 = Me.image
RetVal = Shell("c:\Program Files\Common Files\Microsoft Shared\photoed\photoed.exe " & pic1, 3)
AppActivate RetVal, 0
SendKeys "+(^C)", True
SendKeys "+{f4}", True