Please help me to how capture Screenshots, Image, Desktop into word document in TP 5.6 or below.
I got the solution. Please see the attachment for code.
Thanks and Regards,
Since you have the solution, what kind of help are you seeking from us?
this did not work for me [img]/images/graemlins/frown.gif[/img]
is there any other solution?
I m using TP 6.2
thanks in advance
Searching would find post 553480.
Not sure of what rev. of Word
can you suggest a way to add TPHelperCommands.dll into the references? It's not in my list of references. Can i download it from somewhere?
This code will take the screen shot and save the word document in passed location
Sub fnScreenShot(sPath As String)
Dim oWord As Object
Set oWord = CreateObject("Word.Application")
oWord.DisplayAlerts = False
.Visible = False
Set oWord = Nothing
Hi, whenever i try to run the above script, i am getting an error message saying that the clipboard is empty. I have an IE session open.
the script fails at command .Selection.Paste
Can you tell me what i am doing wrong? Or if there is any other way to just paste the content into the word doc?
Edit: Ok got it. The newer versions of Word and Excel have this problem. When they open up, they flush the clipboard clean. So you have to open up the word doc, and then take the screenshot.