I've got a data page in access that I need to take a screenshot of and email(the reason being if I email just the data page, when you open it, it contains only the template and no data). I'm able to get it to the clipboard using VBA:
Private Declare Sub keybd_event Lib "user32.dll" _
(ByVal bVk As Byte, ByVal bScan As Byte, _
ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Private Const VK_SNAPSHOT = &H2C
keybd_event VK_SNAPSHOT, 1, 0, 0 ' ALT+PRINTSCR
But I not I can't figure out how to get this off of clipboard or how to simulate control+V. I can manually open an email, go to the subject and paste it in, but I can't do it through code. Any help would be greatly appreciated. Or if anyone has another way of getting a data page to someone where they can actually view the data, that would work too.
Thank you.
Private Declare Sub keybd_event Lib "user32.dll" _
(ByVal bVk As Byte, ByVal bScan As Byte, _
ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Private Const VK_SNAPSHOT = &H2C
keybd_event VK_SNAPSHOT, 1, 0, 0 ' ALT+PRINTSCR
But I not I can't figure out how to get this off of clipboard or how to simulate control+V. I can manually open an email, go to the subject and paste it in, but I can't do it through code. Any help would be greatly appreciated. Or if anyone has another way of getting a data page to someone where they can actually view the data, that would work too.
Thank you.